@@ -109,29 +109,16 @@ def test_contour_uniform_z():
109
109
assert len (record ) == 1
110
110
111
111
112
- @image_comparison (['contour_manual_labels' ],
113
- savefig_kwarg = {'dpi' : 200 }, remove_text = True , style = 'mpl20' )
112
+ @image_comparison (['contour_manual_labels' ], remove_text = True , style = 'mpl20' )
114
113
def test_contour_manual_labels ():
115
-
116
114
x , y = np .meshgrid (np .arange (0 , 10 ), np .arange (0 , 10 ))
117
115
z = np .max (np .dstack ([abs (x ), abs (y )]), 2 )
118
116
119
117
plt .figure (figsize = (6 , 2 ), dpi = 200 )
120
118
cs = plt .contour (x , y , z )
121
- pts = np .array ([(1.5 , 3.0 ), (1.5 , 4.4 ), (1.5 , 6.0 )])
119
+ pts = np .array ([(1.0 , 3.0 ), (1.0 , 4.4 ), (1.0 , 6.0 )])
122
120
plt .clabel (cs , manual = pts )
123
-
124
-
125
- @image_comparison (['contour_labels_size_color.png' ],
126
- remove_text = True , style = 'mpl20' )
127
- def test_contour_labels_size_color ():
128
-
129
- x , y = np .meshgrid (np .arange (0 , 10 ), np .arange (0 , 10 ))
130
- z = np .max (np .dstack ([abs (x ), abs (y )]), 2 )
131
-
132
- plt .figure (figsize = (6 , 2 ))
133
- cs = plt .contour (x , y , z )
134
- pts = np .array ([(1.5 , 3.0 ), (1.5 , 4.4 ), (1.5 , 6.0 )])
121
+ pts = np .array ([(2.0 , 3.0 ), (2.0 , 4.4 ), (2.0 , 6.0 )])
135
122
plt .clabel (cs , manual = pts , fontsize = 'small' , colors = ('r' , 'g' ))
136
123
137
124
0 commit comments