-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Final batch of pylab example moves #8983
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
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.
I'm not sure about the anchored_artists.py
example. It seems to be duplicating the classes that already exist in the library, either matplotlib.offsetbox
or mpl_toolkits.axes_grid1
. Probably most of it can be replaced with suitable imports?
LGTM otherwise.
@@ -11,7 +11,8 @@ | |||
|
|||
|
|||
class AnchoredText(AnchoredOffsetbox): |
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.
I wonder if we need this class
when there's a matplotlib.offsetbox.AnchoredText
implementation already?
@@ -26,8 +27,8 @@ class AnchoredSizeBar(AnchoredOffsetbox): | |||
def __init__(self, transform, size, label, loc, |
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.
And AnchoredSizeBar
is in mpl_toolkits.axes_grid1.AnchoredSizeBar
.
@@ -37,7 +37,7 @@ | |||
not m.startswith(('spectral', 'Vega')) # Skip deprecated colormaps. | |||
) | |||
|
|||
#fig.subplots_adjust(top=0.99, bottom=0.01, left=0.2, right=0.99) | |||
# fig.subplots_adjust(top=0.99, bottom=0.01, left=0.2, right=0.99) |
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.
I guess at some point we should clean this up and just delete those lines of codes.
Partially resolves #8922 |
Again, first commit is moves, second commit is PEP8, third commit is link fixing.