Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Align titles #22376#25591
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Align titles #22376#25591
Changes from1 commit
d1067a6
e84960d
d6d5d7f
065d992
7f5220a
838ace3
9decc20
e8042f8
52164fa
b44fb00
3741239
4eb53e6
938d9e5
1fe094a
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -102,6 +102,7 @@ def test_align_labels_stray_axes(): | ||
np.testing.assert_allclose(xn[:2], xn[2:]) | ||
np.testing.assert_allclose(yn[::2], yn[1::2]) | ||
## TODO add image comparison | ||
def test_align_titles(): | ||
fig, axs = plt.subplots(2, 2, | ||
@@ -115,7 +116,9 @@ def test_align_titles(): | ||
axs[0][1].set_title('Title2', loc="left") | ||
fig.align_titles() | ||
fig.savefig("./result_images/test_figure/figure_align_titles") | ||
compare_images("./lib/matplotlib/tests/baseline_images/figure_align_titles.png", | ||
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 think we need to not use relative paths for this test | ||
"./result_images/test_figure/figure_align_titles.png", 0) | ||
## TODO add image comparison | ||
@image_comparison(['figure_align_titles_param'], extensions=['png', 'svg'], | ||
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. The test failures that are directly related to this PR are due to the baseline images for this image comparison not being added to the repo If it is passing locally, those two files (png, svg) should be added in the | ||