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

Skip to content

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

Merged
merged 1 commit into from May 14, 2017
Merged

Mpl toolkit fix for zoomed_inset_axes #8601

merged 1 commit into from May 14, 2017

Conversation

ghost
Copy link

@ghost ghost commented May 10, 2017

PR Summary

A small fix for #8589. Test cases provided.

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/whats_new.rst if major new feature
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

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
Copy link
Member

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.

Copy link
Author

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
@tacaswell tacaswell added this to the 2.1 (next point release) milestone May 13, 2017
@ghost
Copy link
Author

ghost commented May 14, 2017

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

Copy link
Member

@tacaswell tacaswell left a 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
Copy link
Member

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.

@ghost
Copy link
Author

ghost commented May 14, 2017

fixed test case by @QuLogic comment and squashed commit as requested by @tacaswell.

Copy link
Member

@dstansby dstansby left a 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!

@QuLogic
Copy link
Member

QuLogic commented May 14, 2017

Probably should have corrected the commit message a bit, though...

@ghost ghost deleted the mpl_toolkit branch May 16, 2017 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants