@@ -264,6 +264,7 @@ def test_const_xy():
264264 plt .subplot ( 313 )
265265 plt .plot ( np .ones ( (10 ,) ), np .ones ( (10 ,) ), 'o' )
266266
267+
267268@image_comparison (baseline_images = ['polar_wrap_180' ,
268269 'polar_wrap_360' ,
269270 ])
@@ -273,10 +274,11 @@ def test_polar_wrap():
273274 fig = plt .figure ()
274275
275276 plt .subplot (111 , polar = True )
277+
276278 plt .polar ( [179 * D2R , - 179 * D2R ], [0.2 , 0.1 ], "b.-" )
277279 plt .polar ( [179 * D2R , 181 * D2R ], [0.2 , 0.1 ], "g.-" )
278280 plt .rgrids ( [0.05 , 0.1 , 0.15 , 0.2 , 0.25 , 0.3 ] )
279-
281+ assert len ( fig . axes ) == 1 , 'More than one polar axes created.'
280282 fig = plt .figure ()
281283
282284 plt .subplot ( 111 , polar = True )
@@ -285,6 +287,7 @@ def test_polar_wrap():
285287 plt .polar ( [358 * D2R , 2 * D2R ], [0.2 , 0.1 ], "r.-" )
286288 plt .rgrids ( [0.05 , 0.1 , 0.15 , 0.2 , 0.25 , 0.3 ] )
287289
290+
288291@image_comparison (baseline_images = ['polar_units' , 'polar_units_2' ],
289292 freetype_version = ('2.4.5' , '2.4.9' ))
290293def test_polar_units ():
0 commit comments