File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
import matplotlib .pyplot as plt
4
4
import numpy as np
5
5
6
- @image_comparison (baseline_images = ['bbox_inches_tight' ], remove_text = True ,
7
- freetype_version = '2.4.10' ,
8
- savefig_kwarg = dict (bbox_inches = 'tight' ))
6
+ @image_comparison (baseline_images = ['bbox_inches_tight' ], remove_text = True ,
7
+ savefig_kwarg = dict (bbox_inches = 'tight' ))
9
8
def test_bbox_inches_tight ():
10
9
"Test that a figure saved using bbox_inches'tight' is clipped right"
11
10
rcParams .update (rcParamsDefault )
@@ -23,7 +22,8 @@ def test_bbox_inches_tight():
23
22
ind = np .arange (len (colLabels )) + 0.3 # the x locations for the groups
24
23
cellText = []
25
24
width = 0.4 # the width of the bars
26
- yoff = np .array ([0.0 ] * len (colLabels )) # the bottom values for stacked bar chart
25
+ yoff = np .array ([0.0 ] * len (colLabels ))
26
+ # the bottom values for stacked bar chart
27
27
fig , ax = plt .subplots (1 ,1 )
28
28
for row in xrange (rows ):
29
29
plt .bar (ind , data [row ], width , bottom = yoff )
You can’t perform that action at this time.
0 commit comments