HS: Minor fixes.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-21 10:49:47 +01:00
1 parent 485b2cad1e
commit 1a66188411
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -118,6 +118,9 @@ class PlotAC(PamhyrPlot):
self.line_kp.set_data(x, z)
def clear(self):
self.update_clear()
def update_clear(self):
if self.line_kp is not None:
self.line_kp.set_data([], [])
+1 -1
View File
@@ -147,7 +147,7 @@ class PlotKPC(PamhyrPlot):
def clear(self):
if self.profile is not None:
self.profile.set_data([], [])
self.profile[0].set_data([], [])
if self.line_kp_zmin_zmax is not None:
self.line_kp_zmin_zmax.remove()