-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Scatter Plot Graph: legend opacity #2819
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2819 +/- ##
=========================================
Coverage ? 80.77%
=========================================
Files ? 324
Lines ? 56221
Branches ? 0
=========================================
Hits ? 45413
Misses ? 10808
Partials ? 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a bit of nitpicking. Otherwise OK.
@@ -1060,10 +1060,12 @@ def make_color_legend(self): | |||
palette = self.discrete_palette | |||
for i, value in enumerate(self.attr_color.values): | |||
color = QColor(*palette.getRGB(i)) | |||
brush = color.lighter(self.DarkerValue) | |||
pen = make_pen(QColor(color).darker(self.DarkerValue), 1.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pen = make_pen(color.darker(self.DarkerValue), 1.5)
, without QColor
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -469,6 +469,12 @@ def _define_symbols(): | |||
_define_symbols() | |||
|
|||
|
|||
def make_pen(color, width): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we should better name it _make_pen
, so we don't commit to keeping this function. Otherwise some add-on could rely on it.
make_pen -> _make_pen
@janezd : you can merge. |
Issue
See #2804 (review) fourth bullet.
Description of changes
Take a look at Opacity Slider, Legend, and points!
Includes