Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX: cross figure legends with patches #6350

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

Merged

Conversation

tacaswell
Copy link
Member

Found via biocore/qiime#2117

The update_props method on Patch was setting the figure along
with the style. This was setting the new patch for the legend to have
the same figure as the original handle, but this is later attempted to
be set to the figure the legend is in when the patch is added to the
legend.

This fix should not break anything as if the patch is going to be drawn
it should be added to the draw tree which should in turn set the
correct figure.

Found via biocore/qiime#2117

The `update_props` method on `Patch` was setting the figure along
with the style.  This was setting the new patch for the legend to have
the same figure as the original handle, but this is later attempted to
be set to the figure the legend is in when the patch is added to the
legend.

This fix should not break anything as if the patch is going to be drawn
it should be added to the draw tree which _should_ in turn set the
correct figure.
@tacaswell tacaswell added this to the 1.5.2 (Critical bug fix release) milestone Apr 30, 2016
@efiring
Copy link
Member

efiring commented May 2, 2016

Looks reasonable.

@jenshnielsen jenshnielsen merged commit e1499e1 into matplotlib:v1.5.x May 2, 2016
@tacaswell tacaswell deleted the fix_cross_figure_patch_legend branch May 2, 2016 20:36
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.

4 participants