Skip to content

Commit de7f440

Browse files
committed
fixed duplicate plot showing
1 parent 89f80c9 commit de7f440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/axiomatic/pic_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def plot_interactive_spectrums(
156156

157157
# Function to update the plot
158158
def plot_array(index=0):
159-
plt.clf()
159+
plt.close("all")
160160
plt.figure(figsize=(8, 4))
161161
for i, array in enumerate(spectrums):
162162
plt.plot(wavelengths, array[index], lw=2, label=spectrum_labels[i])

0 commit comments

Comments
 (0)