-
-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,5 @@ | |
plt.ylabel('more nans') | ||
plt.grid(True) | ||
|
||
plt.tight_layout() | ||
plt.show() |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
|
||
|
||
class AnchoredText(AnchoredOffsetbox): | ||
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. I wonder if we need this |
||
def __init__(self, s, loc, pad=0.4, borderpad=0.5, prop=None, frameon=True): | ||
def __init__(self, s, loc, pad=0.4, borderpad=0.5, | ||
prop=None, frameon=True): | ||
|
||
self.txt = TextArea(s, | ||
minimumdescent=False) | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. And |
||
pad=0.1, borderpad=0.1, sep=2, prop=None, frameon=True): | ||
""" | ||
Draw a horizontal bar with the size in data coordinate of the give axes. | ||
A label will be drawn underneath (center-aligned). | ||
Draw a horizontal bar with the size in data coordinate of the given | ||
axes. A label will be drawn underneath (center-aligned). | ||
|
||
pad, borderpad in fraction of the legend font size (or prop) | ||
sep in points. | ||
|
@@ -71,7 +72,8 @@ def __init__(self, width, height, xdescent, ydescent, | |
|
||
self.da = DrawingArea(width, height, xdescent, ydescent) | ||
|
||
super(AnchoredDrawingArea, self).__init__(loc, pad=pad, borderpad=borderpad, | ||
super(AnchoredDrawingArea, self).__init__(loc, pad=pad, | ||
borderpad=borderpad, | ||
child=self.da, | ||
prop=None, | ||
frameon=frameon) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,5 @@ def make_fig(): | |
|
||
FigureCanvasAgg(fig).print_png('webapp.png', dpi=150) | ||
|
||
|
||
make_fig() |
This file was deleted.
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.