Skip to content

Commit

Permalink
Added tests to bbox_tight
Browse files Browse the repository at this point in the history
  • Loading branch information
jowr authored and jenshnielsen committed Sep 2, 2014
1 parent d5dafdb commit 17cc6dd
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 1 deletion.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion lib/matplotlib/tests/test_bbox_tight.py
Expand Up @@ -84,7 +84,15 @@ def test_bbox_inches_tight_clipping():
path.vertices *= 0.25
patch.set_clip_path(path, transform=ax.transAxes)
plt.gcf().artists.append(patch)



@image_comparison(baseline_images=['bbox_inches_tight_raster'],
remove_text=True, savefig_kwarg={'bbox_inches': 'tight'})
def test_bbox_inches_tight_raster():
"""Test rasterization with tight_layout"""
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot([1.0, 2.0], rasterized=True)

if __name__ == '__main__':
import nose
Expand Down

0 comments on commit 17cc6dd

Please sign in to comment.