Skip to content

Commit 926efd4

Browse files
authored
Merge pull request matplotlib#8972 from anntzer/figureoptions-marker-alpha
ENH: Don't drop marker alpha in Qt figure options.
2 parents 5a24121 + 23c3da8 commit 926efd4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,12 @@ def prepare_data(d, init):
117117
color = mcolors.to_hex(
118118
mcolors.to_rgba(line.get_color(), line.get_alpha()),
119119
keep_alpha=True)
120-
ec = mcolors.to_hex(line.get_markeredgecolor(), keep_alpha=True)
121-
fc = mcolors.to_hex(line.get_markerfacecolor(), keep_alpha=True)
120+
ec = mcolors.to_hex(
121+
mcolors.to_rgba(line.get_markeredgecolor(), line.get_alpha()),
122+
keep_alpha=True)
123+
fc = mcolors.to_hex(
124+
mcolors.to_rgba(line.get_markerfacecolor(), line.get_alpha()),
125+
keep_alpha=True)
122126
curvedata = [
123127
('Label', label),
124128
sep,

0 commit comments

Comments
 (0)