Skip to content

Commit 24fb5c6

Browse files
committed
Prevent forced alpha in figureoptions.
Forcing the alpha value sets it not only for the line color but also the marker faces and edges (i.e., editing the alpha value of the markers in the options editor had no effect). Instead, just remove any forced alpha and use the alpha values that have been set in the editor. A later idea may be to make alpha not override alpha values passed in together with the color as quadruplets.
1 parent 3f7e675 commit 24fb5c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ def apply_callback(data):
209209
line.set_drawstyle(drawstyle)
210210
line.set_linewidth(linewidth)
211211
rgba = mcolors.to_rgba(color)
212-
line.set_color(rgba[:3])
213-
line.set_alpha(rgba[-1])
212+
line.set_alpha(None)
213+
line.set_color(rgba)
214214
if marker is not 'none':
215215
line.set_marker(marker)
216216
line.set_markersize(markersize)

0 commit comments

Comments
 (0)