Skip to content

Commit 295ea49

Browse files
authored
prevent double plot
1 parent b4ed4d1 commit 295ea49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/axiomatic/pic_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def plot_circuit(component):
2323

2424

2525
def plot_losses(
26-
losses: List[float], iterations: Optional[List[int]] = None, return_fig: bool = True
26+
losses: List[float], iterations: Optional[List[int]] = None, return_fig: bool = False
2727
):
2828
"""
2929
Plot a list of losses with labels.
@@ -47,7 +47,7 @@ def plot_constraints(
4747
constraints: List[List[float]],
4848
constraints_labels: Optional[List[str]] = None,
4949
iterations: Optional[List[int]] = None,
50-
return_fig: bool = True,
50+
return_fig: bool = False,
5151
):
5252
"""
5353
Plot a list of constraints with labels.
@@ -82,7 +82,7 @@ def plot_single_spectrum(
8282
wavelengths: List[float],
8383
vlines: Optional[List[float]] = None,
8484
hlines: Optional[List[float]] = None,
85-
return_fig: bool = True,
85+
return_fig: bool = False,
8686
):
8787
"""
8888
Plot a single spectrum with vertical and horizontal lines.

0 commit comments

Comments
 (0)