-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
FIX: turn off title autopos if pad is set #16862
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 1 commit
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ def example_plot(ax, fontsize=12): | |
ax.set_title('Title', fontsize=fontsize) | ||
|
||
|
||
@image_comparison(['tight_layout1']) | ||
@image_comparison(['tight_layout1'], tol=1.87) | ||
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. Do you need to increase the tolerance, or can you not set the rcParam like the other test? 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. No, its really strange - the whole figure is the same except for the blue line. 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. This was the macOS failure with new Ghostscript? So this can now be rebased out. 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 don't think so, but maybe... |
||
def test_tight_layout1(): | ||
"""Test tight_layout for a single subplot.""" | ||
fig, ax = plt.subplots() | ||
|
@@ -115,7 +115,7 @@ def test_tight_layout6(): | |
h_pad=0.45) | ||
|
||
|
||
@image_comparison(['tight_layout7']) | ||
@image_comparison(['tight_layout7'], tol=1.87) | ||
def test_tight_layout7(): | ||
# tight layout with left and right titles | ||
fontsize = 24 | ||
|
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.
Would it be better to switch these to use the new default style?
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 dunno, I admit to being thorough confused as to what style is default for the tests, versus which need to have the style specified somehow. It seems that all the tests are run
classic
? But I don't know how to change a new test to use default if its not an image test.