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

Commit506aef0

Browse files
committed
Fix flake8 errors
1 parent4df7c14 commit506aef0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,10 @@ def render_figures(code, code_path, output_dir, output_base, context,
717717
forfmt,dpiinformats:
718718
try:
719719
ifos.path.exists(img.filename(fmt)):
720-
raisePlotError('file %s already exists. You may need to set output-base-name to something else.'%img.filename(fmt))
720+
raisePlotError(
721+
'file %s already exists. You may need to '
722+
'set output-base-name to something else.'
723+
%img.filename(fmt))
721724
figman.canvas.figure.savefig(img.filename(fmt),dpi=dpi)
722725
iffmt==formats[0][0]andconfig.plot_srcset:
723726
# save a 2x, 3x etc version of the default...
@@ -726,7 +729,10 @@ def render_figures(code, code_path, output_dir, output_base, context,
726729
fm=f'{suffix}.{fmt}'
727730
img.formats.append(fm)
728731
ifos.path.exists(img.filename(fm)):
729-
raisePlotError('file %s already exists. You may need to set output-base-name to something else.'%img.filename(fmt))
732+
raisePlotError(
733+
'file %s already exists. You may need to '
734+
'set output-base-name to something else.'
735+
%img.filename(fmt))
730736
figman.canvas.figure.savefig(img.filename(fm),
731737
dpi=int(dpi*mult))
732738
exceptExceptionaserr:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp