Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 17cc6dd

Browse filesBrowse files
jowrjenshnielsen
authored andcommitted
Added tests to bbox_tight
1 parent d5dafdb commit 17cc6dd
Copy full SHA for 17cc6dd

File tree

Expand file treeCollapse file tree

4 files changed

+244
-1
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+244
-1
lines changed
Binary file not shown.
Loading
+235Lines changed: 235 additions & 0 deletions
Loading

‎lib/matplotlib/tests/test_bbox_tight.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_bbox_tight.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,15 @@ def test_bbox_inches_tight_clipping():
8484
path.vertices *= 0.25
8585
patch.set_clip_path(path, transform=ax.transAxes)
8686
plt.gcf().artists.append(patch)
87-
87+
88+
89+
@image_comparison(baseline_images=['bbox_inches_tight_raster'],
90+
remove_text=True, savefig_kwarg={'bbox_inches': 'tight'})
91+
def test_bbox_inches_tight_raster():
92+
"""Test rasterization with tight_layout"""
93+
fig = plt.figure()
94+
ax = fig.add_subplot(111)
95+
ax.plot([1.0, 2.0], rasterized=True)
8896

8997
if __name__ == '__main__':
9098
import nose

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.