Skip to content

Commit 7b998e1

Browse files
committed
Update polar test images.
Also, switch to default style for all updated images.
1 parent 734da0f commit 7b998e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+20639
-16554
lines changed
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/markevery_polar.svg

+4,484-7,630
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_axes.svg

+1,066-1,115
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_coords.svg

+101-195
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_negative_rmin.svg

+1,663
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_rlabel_position.svg

+747-808
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_rmin.svg

+1,327-1,388
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_rorigin.svg

+2,034
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_theta_position.svg

+1,193-1,176
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_theta_wedge.svg

+3,904
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_units.svg

+1,143-1,174
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_units_2.svg

+1,144-1,175
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_wrap_180.svg

+899-930
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_axes/polar_wrap_360.svg

+921-952

lib/matplotlib/tests/test_axes.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def test_annotate_default_arrow():
349349
assert ann.arrow_patch is not None
350350

351351

352-
@image_comparison(baseline_images=['polar_axes'])
352+
@image_comparison(baseline_images=['polar_axes'], style='default')
353353
def test_polar_annotations():
354354
# you can specify the xypoint and the xytext in different
355355
# positions and coordinate systems, and optionally turn on a
@@ -383,7 +383,7 @@ def test_polar_annotations():
383383
)
384384

385385

386-
@image_comparison(baseline_images=['polar_coords'],
386+
@image_comparison(baseline_images=['polar_coords'], style='default',
387387
remove_text=True)
388388
def test_polar_coord_annotations():
389389
# You can also use polar notation on a catesian axes. Here the
@@ -558,9 +558,8 @@ def test_const_xy():
558558
plt.plot(np.ones((10,)), np.ones((10,)), 'o')
559559

560560

561-
@image_comparison(baseline_images=['polar_wrap_180',
562-
'polar_wrap_360',
563-
])
561+
@image_comparison(baseline_images=['polar_wrap_180', 'polar_wrap_360'],
562+
style='default')
564563
def test_polar_wrap():
565564
D2R = np.pi / 180.0
566565

@@ -581,7 +580,8 @@ def test_polar_wrap():
581580
plt.rgrids([0.05, 0.1, 0.15, 0.2, 0.25, 0.3])
582581

583582

584-
@image_comparison(baseline_images=['polar_units', 'polar_units_2'])
583+
@image_comparison(baseline_images=['polar_units', 'polar_units_2'],
584+
style='default')
585585
def test_polar_units():
586586
import matplotlib.testing.jpl_units as units
587587
units.register()
@@ -612,7 +612,7 @@ def test_polar_units():
612612
units.UnitDblFormatter)
613613

614614

615-
@image_comparison(baseline_images=['polar_rmin'])
615+
@image_comparison(baseline_images=['polar_rmin'], style='default')
616616
def test_polar_rmin():
617617
r = np.arange(0, 3.0, 0.01)
618618
theta = 2*np.pi*r
@@ -661,14 +661,15 @@ def test_polar_theta_position():
661661
ax.set_theta_direction('clockwise')
662662

663663

664-
@image_comparison(baseline_images=['polar_rlabel_position'])
664+
@image_comparison(baseline_images=['polar_rlabel_position'], style='default')
665665
def test_polar_rlabel_position():
666666
fig = plt.figure()
667667
ax = fig.add_subplot(111, projection='polar')
668668
ax.set_rlabel_position(315)
669669

670670

671-
@image_comparison(baseline_images=['polar_theta_wedge'], style='default')
671+
@image_comparison(baseline_images=['polar_theta_wedge'], style='default',
672+
tol=0.01 if six.PY2 else 0)
672673
def test_polar_theta_limits():
673674
r = np.arange(0, 3.0, 0.01)
674675
theta = 2*np.pi*r
@@ -1307,7 +1308,7 @@ def test_markevery_log_scales():
13071308
plt.plot(x, y, 'o', ls='-', ms=4, markevery=case)
13081309

13091310

1310-
@image_comparison(baseline_images=['markevery_polar'],
1311+
@image_comparison(baseline_images=['markevery_polar'], style='default',
13111312
remove_text=True)
13121313
def test_markevery_polar():
13131314
cases = [None,

lib/matplotlib/tests/test_patches.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ def test_multi_color_hatch():
339339
ax.add_patch(r)
340340

341341

342-
@image_comparison(baseline_images=['polar_proj'], extensions=['png'])
342+
@image_comparison(baseline_images=['polar_proj'], extensions=['png'],
343+
style='default')
343344
def test_adding_rectangle_patch_with_polar_projection():
344345
fig = plt.figure()
345346
ax = fig.add_subplot(111, projection='polar')

0 commit comments

Comments
 (0)