You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plot([0, 1], [0, 1], color=(0, 0, 0, .5)) (a gray line) then click on the qt editor. Upon clicking on OK, the line becomes black, likely because the alpha value has been discarded.
Tested on 1.5.1 and master.
@tacaswell thanks for the reply! my apologies for the vague question, I'm new, as you can tell, so I'm wondering where should I look in the code base to get started?
Activity
TuanNguyen27 commentedon Mar 23, 2016
I would like to work on this issue, how do i start ?
tacaswell commentedon Mar 23, 2016
@TuanNguyen27 You just did 😉
TuanNguyen27 commentedon Mar 23, 2016
@tacaswell thanks for the reply! my apologies for the vague question, I'm new, as you can tell, so I'm wondering where should I look in the code base to get started?
tacaswell commentedon Mar 23, 2016
The color handling in https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/qt_editor/figureoptions.py
I may be reconsidering tagging this as easy, there maybe a non-trivial amount of Qt work involved.
anntzer commentedon May 5, 2016
Actually, the Qt side of things is relatively easy, because QColorDialog (Qt 4.8 and 5.6) provide the ShowAlphaChannel option (http://doc.qt.io/qt-5.6/qcolordialog.html#ColorDialogOption-enum). The more tricky part is that functions in
matplotlib.colorsin charge of the#rrggbbto color conversion (in both directions:rgb2hex,ColorConverter.to_rgba,is_color_like) do not handle the#rrggbbaaformat, so quite a bit of work would be needed on that side.WeatherGod commentedon May 5, 2016
IIRC, there is actually an open feature request to support #rrggbbaa
format. So, getting that to work would actually close two issues at once.
On Wed, May 4, 2016 at 10:11 PM, Antony Lee [email protected]
wrote: