-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Qt properties editor discards color alpha #6196
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
Comments
I would like to work on this issue, how do i start ? |
@TuanNguyen27 You just did 😉 |
@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? |
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. |
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 |
IIRC, there is actually an open feature request to support #rrggbbaa On Wed, May 4, 2016 at 10:11 PM, Antony Lee notifications@github.com
|
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.
The text was updated successfully, but these errors were encountered: