Qt editor alpha #6383

Merged
merged 2 commits into from Jul 10, 2016

Conversation

Projects
None yet
4 participants
Contributor

anntzer commented May 8, 2016

Make alpha values accessible through the Qt figure options editor. Requires #6382 (alpha support in matplotlib.colors), closes #6196.

mdboom added the needs_review label May 8, 2016

QuLogic added the GUI/Qt label May 8, 2016

tacaswell added this to the 2.1 (next point release) milestone May 8, 2016

Owner

tacaswell commented May 12, 2016

@anntzer this needs a rebase after your other PR got merged.

Contributor

anntzer commented May 12, 2016

Nope, it's still fine.

Owner

tacaswell commented May 12, 2016

github/The web UI disagrees with you about this needing a rebase.

Contributor

anntzer commented May 12, 2016

Sorry, I was confused by your message on the other PR regarding it being pulled in (which is not the case). Anyways, rebased both PRs.

Contributor

anntzer commented May 16, 2016

By the way, I would appreciate if someone did some manual testing of this PR too, because the figure options UI is not unit-tested (and that would not be so easy to do...).

Owner

tacaswell commented Jun 19, 2016

👍 does what it says on the tin.

Looks like this needs a rebase.

anntzer added some commits May 5, 2016

@anntzer anntzer Minor cleanups for FormLayout. 0cbcf69
@anntzer anntzer Qt editor alpha handling.
87ab70a
Contributor

anntzer commented Jun 20, 2016

Apparently I also needed to call line.set_alpha explicitly for the alpha value to be set, not sure if something changed recently (I think this wasn't the case before).

Owner

tacaswell commented Jun 21, 2016

If I change those lines back to line.set_color(color) it works as expected for me.

Contributor

anntzer commented Jun 21, 2016

What did you try? If I call plot([1, 2], alpha=.5) then try to edit the alpha of the line, the alpha is actually not modified (when it's just line.set_color(color)).

Owner

tacaswell commented Jun 21, 2016

Ah, I was starting with a full alpha line and then turning it down.

Member

QuLogic commented Jul 10, 2016 edited

Ping? Milestone changed to match with #6382.

Contributor

anntzer commented Jul 10, 2016

Should be good to go? The issue with the need to explicitly call line.set_alpha is an independent one.

@QuLogic QuLogic merged commit f1bab50 into matplotlib:master Jul 10, 2016

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.01%) to 70.274%
Details

QuLogic removed the needs_review label Jul 10, 2016

anntzer deleted the anntzer:qt-editor-alpha branch Jul 10, 2016

Member

QuLogic commented Jul 10, 2016

Hmm, this doesn't backport cleanly. Do you mind opening another PR for it?

Contributor

anntzer commented Jul 10, 2016

Should I cherry-pick this to upstream/v2.x?

Member

QuLogic commented Jul 10, 2016

Yes, it just doesn't do so cleanly. I'm sure you'll be able to figure it out though.

Contributor

anntzer commented Jul 10, 2016

I gave it a try; I think that short of rewriting the PR from scratch it's going to be tough to de-interleave it from my other editor-related PRs that went into master but not v2.x (#5469, #6346, #6347, #6366).

Owner

tacaswell commented Jul 10, 2016

@anntzer Go ahead and backport all of the editor code if that is easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment