8000 MNT: pass all input to render_figures an keyword · matplotlib/matplotlib@496888c · GitHub
[go: up one dir, main page]

Skip to content

Commit 496888c

Browse files
co 10000 mmitted
MNT: pass all input to render_figures an keyword
There are too many positional arguments and the names are subtly different.
1 parent 51aa6e4 commit 496888c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -799,13 +799,13 @@ def run(arguments, content, options, state_machine, state, lineno):
799799

800800
# make figures
801801
try:
802-
results = render_figures(code,
803-
source_file_name,
804-
build_dir,
805-
output_base,
806-
keep_context,
807-
function_name,
808-
config,
802+
results = render_figures(code=code,
803+
code_path=source_file_name,
804+
output_dir=build_dir,
805+
output_base=output_base,
806+
context=keep_context,
807+
function_name=function_name,
808+
config=config,
809809
context_reset=context_opt == 'reset',
810810
close_figs=context_opt == 'close-figs',
811811
code_includes=source_file_includes)

0 commit comments

Comments
 (0)
0