Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9be315

Browse files
committed
Update polar test images.
Also, switch to default style for all updated images.
1 parentf7aa646 commite9be315

File tree

42 files changed

+20639
-16554
lines changed

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

Lines changed: 4484 additions & 7630 deletions
Binary file not shown.

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

Lines changed: 1066 additions & 1115 deletions
Binary file not shown.

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

Lines changed: 101 additions & 195 deletions
Binary file not shown.

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

Lines changed: 1663 additions & 0 deletions
Binary file not shown.

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

Lines changed: 747 additions & 808 deletions
Binary file not shown.

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

Lines changed: 1327 additions & 1388 deletions
Binary file not shown.

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

Lines changed: 2034 additions & 0 deletions
Binary file not shown.

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

Lines changed: 1193 additions & 1176 deletions
Binary file not shown.

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

Lines changed: 3904 additions & 0 deletions
Binary file not shown.

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

Lines changed: 1143 additions & 1174 deletions
Binary file not shown.

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

Lines changed: 1144 additions & 1175 deletions
Binary file not shown.

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

Lines changed: 899 additions & 930 deletions
Binary file not shown.

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

Lines changed: 921 additions & 952 deletions

‎lib/matplotlib/tests/test_axes.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def test_annotate_default_arrow():
349349
assertann.arrow_patchisnotNone
350350

351351

352-
@image_comparison(baseline_images=['polar_axes'])
352+
@image_comparison(baseline_images=['polar_axes'],style='default')
353353
deftest_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
deftest_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
deftest_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
deftest_polar_units():
586586
importmatplotlib.testing.jpl_unitsasunits
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
deftest_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
deftest_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.01ifsix.PY2else0)
672673
deftest_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
deftest_markevery_polar():
13131314
cases= [None,

‎lib/matplotlib/tests/test_patches.py

Lines changed: 2 additions & 1 deletion
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
deftest_adding_rectangle_patch_with_polar_projection():
344345
fig=plt.figure()
345346
ax=fig.add_subplot(111,projection='polar')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp