-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Mpl toolkit fix for zoomed_inset_axes #8601
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
Conversation
lib/matplotlib/tests/test_axes.py
Outdated
fig, ax = plt.subplots() | ||
ax.plot([1, 2, 3], [1, 2, 3]) | ||
ax.axis([1, 3, 1, 3]) | ||
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it uses mpl_toolkits
, it doesn't belong in this file. It should go somewhere in lib/mpl_toolkits/tests
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. thanks for the pointer
Delete inset_locator.py Add files via upload Delete test_axes.py Add files via upload Update test_axes.py Delete test_axes.py Add files via upload Add files via upload Update test_axes.py move test into appropriate folder remove unneccessary import from test
As with last time, the appveyor build fails, but i can't reproduce. If someone could rebuild to see if it still fails, i'll be thankful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tuan333 Please either squash and force-push or who ever merges use the squash option.
fig, ax = plt.subplots() | ||
ax.plot([1, 2, 3], [1, 2, 3]) | ||
ax.axis([1, 3, 1, 3]) | ||
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already imported at the top of the file.
fixed test case by @QuLogic comment and squashed commit as requested by @tacaswell. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for the fix!
Probably should have corrected the commit message a bit, though... |
PR Summary
A small fix for #8589. Test cases provided.
PR Checklist