@@ -1241,6 +1241,17 @@ def test_scatter_marker():
1241
1241
marker = mmarkers .MarkerStyle ('o' , fillstyle = 'top' ))
1242
1242
1243
1243
1244
+ @image_comparison (baseline_images = ['scatter_2D' ], remove_text = True ,
1245
+ extensions = ['png' ])
1246
+ def test_scatter_2D ():
1247
+ x = np .arange (3 )
1248
+ y = np .arange (2 )
1249
+ x , y = np .meshgrid (x , y )
1250
+ z = x + y
1251
+ fig , ax = plt .subplots ()
1252
+ ax .scatter (x , y , c = z , s = 200 , edgecolors = 'face' )
1253
+
1254
+
1244
1255
@cleanup
1245
1256
def test_as_mpl_axes_api ():
1246
1257
# tests the _as_mpl_axes api
@@ -2150,17 +2161,17 @@ def test_errorbar():
2150
2161
def test_errorbar_shape ():
2151
2162
fig = plt .figure ()
2152
2163
ax = fig .gca ()
2153
-
2164
+
2154
2165
x = np .arange (0.1 , 4 , 0.5 )
2155
2166
y = np .exp (- x )
2156
2167
yerr1 = 0.1 + 0.2 * np .sqrt (x )
2157
2168
yerr = np .vstack ((yerr1 , 2 * yerr1 )).T
2158
2169
xerr = 0.1 + yerr
2159
-
2170
+
2160
2171
assert_raises (ValueError , ax .errorbar , x , y , yerr = yerr , fmt = 'o' )
2161
2172
assert_raises (ValueError , ax .errorbar , x , y , xerr = xerr , fmt = 'o' )
2162
2173
assert_raises (ValueError , ax .errorbar , x , y , yerr = yerr , xerr = xerr , fmt = 'o' )
2163
-
2174
+
2164
2175
2165
2176
@image_comparison (baseline_images = ['errorbar_limits' ])
2166
2177
def test_errorbar_limits ():
0 commit comments