Skip to content
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

Fix line color handling #2761

Merged
merged 2 commits into from Jan 27, 2014
Merged

Conversation

tacaswell
Copy link
Member

@jakevdp please confirm that this fixes your problem.

Sorry about this, I am very surprised this did not come up sooner.

Fixes matplotlib#2760

Fixes miss-handling of color conversion logic introduced in edc48f0
@@ -527,7 +527,7 @@ def draw(self, renderer):
self._set_gc_clip(gc)

ln_color_rgba = self._get_rgba_ln_color()
gc.set_foreground(ln_color_rgba)
gc.set_foreground(ln_color_rgba, isRGBA=True)
gc.set_alpha(ln_color_rgba[3])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_get_rgba_in_color() can return a None, so the indexing here would break.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gah, just now noticed you changed _get_rgba_ln_color()

@mdboom
Copy link
Member

mdboom commented Jan 27, 2014

@tacaswell: Do you consider this ready to merge?

@tacaswell
Copy link
Member Author

I think this is ready to go.

mdboom added a commit that referenced this pull request Jan 27, 2014
@mdboom mdboom merged commit e807990 into matplotlib:v1.3.x Jan 27, 2014
@tacaswell tacaswell deleted the fix_line_color_handling branch February 8, 2014 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants