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

Commit2860571

Browse files
committed
Test antialiased default setting
1 parente1da8bc commit2860571

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎lib/matplotlib/tests/test_patches.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
importmatplotlib.pyplotasplt
1212
frommatplotlibimport (
1313
collectionsasmcollections,colorsasmcolors,patchesasmpatches,
14-
pathasmpath,styleasmstyle,transformsasmtransforms)
14+
pathasmpath,styleasmstyle,transformsasmtransforms,rcParams)
1515

1616
importsys
1717
on_win= (sys.platform=='win32')
@@ -576,3 +576,13 @@ def test_color_override_warning(kwarg):
576576
deftest_empty_verts():
577577
poly=Polygon(np.zeros((0,2)))
578578
assertpoly.get_verts()== []
579+
580+
581+
deftest_default_antialiased():
582+
patch=Patch()
583+
584+
patch.set_antialiased(notrcParams['patch.antialiased'])
585+
assertpatch.get_antialiased()== (notrcParams['patch.antialiased'])
586+
# Check that None resets the state
587+
patch.set_antialiased(None)
588+
assertpatch.get_antialiased()==rcParams['patch.antialiased']

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp