Skip to content

Commit f5f7b83

Browse files
committed
Cleanup, removed unused args
1 parent 9e6558a commit f5f7b83

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/maxplotlib/canvas/canvas.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ def savefig(
225225
layers: list | None = None,
226226
layer_by_layer: bool = False,
227227
verbose: bool = False,
228-
plot: bool = True,
229228
):
230229
filename_no_extension, extension = os.path.splitext(filename)
231230
if backend == "matplotlib":
@@ -254,7 +253,6 @@ def savefig(
254253
else:
255254

256255
fig, axs = self.plot(
257-
show=False,
258256
backend="matplotlib",
259257
savefig=True,
260258
layers=layers,
@@ -263,7 +261,12 @@ def savefig(
263261
if verbose:
264262
print(f"Saved {full_filepath}")
265263

266-
def plot(self, backend: Backends = "matplotlib", savefig=False, layers=None):
264+
def plot(
265+
self,
266+
backend: Backends = "matplotlib",
267+
savefig=False,
268+
layers=None,
269+
):
267270
if backend == "matplotlib":
268271
return self.plot_matplotlib(savefig=savefig, layers=layers)
269272
elif backend == "plotly":

0 commit comments

Comments
 (0)