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

Commit45089d9

Browse files
tacaswelltimhoffm
authored andcommitted
DOC: clarify when to use multiple extensions
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent670fb5a commit45089d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎lib/matplotlib/testing/decorators.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,12 @@ def check_figures_equal(*, extensions=("png", ), tol=0):
361361
Parameters
362362
----------
363363
extensions : list, default: ["png"]
364-
The extensions to test.
364+
The extensions to test. Supported extensions are "png", "pdf", "svg".
365+
366+
Testing with the one default extension is sufficient if the output is not
367+
format dependent, e.g. if you test that a ``bar()`` plot yields the same
368+
result as some manually placed Rectangles. You should use all extensions
369+
if a renderer property is involved, e.g. correct alpha blending.
365370
tol : float
366371
The RMS threshold above which the test is considered failed.
367372

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp