Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
FIX: secondary_axis resize#13419
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -43,11 +43,12 @@ def _make_secondary_locator(rect, parent): | ||
*parent*. | ||
""" | ||
_rect = mtransforms.Bbox.from_bounds(*rect) | ||
def secondary_locator(ax, renderer): | ||
# delay evaluating transform until draw time because the | ||
# parent transform may have changed (i.e. if window reesized) | ||
bb = mtransforms.TransformedBbox(_rect, parent.transAxes) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. @anntzer Iknew there was a reason for this song and dance... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Maybe add a comment mentioning this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Good idea. Comment added. | ||
tr = parent.figure.transFigure.inverted() | ||
bb = mtransforms.TransformedBbox(bb, tr) | ||
return bb | ||
return secondary_locator | ||