File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ def scilabel(value: float, precision: int = 2) -> str:
6969
7070
7171def saveplot (
72- fig : Figure , * name_args : Any , close : bool = True , ** name_kwargs : Any
72+ fig : Figure ,
73+ stem : str ,
74+ timestep : Optional [int ] = None ,
75+ close : bool = True ,
7376) -> None :
7477 """Save matplotlib figure.
7578
@@ -78,11 +81,11 @@ def saveplot(
7881
7982 Args:
8083 fig: the :class:`matplotlib.figure.Figure` to save.
84+ stem: short description of file content.
85+ timestep: timestep if relevant.
8186 close: whether to close the figure.
82- name_args: positional arguments passed on to :func:`out_name`.
83- name_kwargs: keyword arguments passed on to :func:`out_name`.
8487 """
85- oname = out_name (* name_args , ** name_kwargs )
88+ oname = out_name (stem , timestep )
8689 fig .savefig (
8790 f"{ oname } .{ conf .plot .format } " , format = conf .plot .format , bbox_inches = "tight"
8891 )
You can’t perform that action at this time.
0 commit comments