Commit 1a661884 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

HS: Minor fixes.

Showing with 4 additions and 1 deletion
+4 -1
......@@ -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([], [])
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment