@@ -1283,7 +1283,7 @@ def test_scatter_plot():
1283
1283
@image_comparison (baseline_images = ['scatter_marker' ], remove_text = True ,
1284
1284
extensions = ['png' ])
1285
1285
def test_scatter_marker ():
1286
- fig , (ax0 , ax1 ) = plt .subplots (ncols = 2 )
1286
+ fig , (ax0 , ax1 , ax2 ) = plt .subplots (ncols = 3 )
1287
1287
ax0 .scatter ([3 , 4 , 2 , 6 ], [2 , 5 , 2 , 3 ],
1288
1288
c = [(1 , 0 , 0 ), 'y' , 'b' , 'lime' ],
1289
1289
s = [60 , 50 , 40 , 30 ],
@@ -1294,6 +1294,16 @@ def test_scatter_marker():
1294
1294
s = [60 , 50 , 40 , 30 ],
1295
1295
edgecolors = ['k' , 'r' , 'g' , 'b' ],
1296
1296
marker = mmarkers .MarkerStyle ('o' , fillstyle = 'top' ))
1297
+ # unit area ellipse
1298
+ rx , ry = 3 , 1
1299
+ area = rx * ry * np .pi
1300
+ theta = np .linspace (0 , 2 * np .pi , 21 )
1301
+ verts = list (zip (np .cos (theta ) * rx / area , np .sin (theta ) * ry / area ))
1302
+ ax2 .scatter ([3 , 4 , 2 , 6 ], [2 , 5 , 2 , 3 ],
1303
+ c = [(1 , 0 , 0 ), 'y' , 'b' , 'lime' ],
1304
+ s = [60 , 50 , 40 , 30 ],
1305
+ edgecolors = ['k' , 'r' , 'g' , 'b' ],
1306
+ verts = verts )
1297
1307
1298
1308
1299
1309
@image_comparison (baseline_images = ['scatter_2D' ], remove_text = True ,
0 commit comments