1. Matthew Turk
  2. yt

Commits

Matthew Turk  committed b2b0770

We can clear our axes in advance. Otherwise we wipe out time series.

  • Participants
  • Parent commits 67881d5
  • Branches yt-3.0

Comments (0)

Files changed (1)

File yt/visualization/profile_plotter.py

View file
         return ret
 
     def _setup_plots(self):
+        for f in self.axes:
+            self.axes[field].cla()
         for i, profile in enumerate(self.profiles):
             for field, field_data in profile.items():
-                if field in self.axes:
-                    self.axes[field].cla()
                 self.axes[field].plot(np.array(profile.x), np.array(field_data),
                                       label=self.label[i], **self.plot_spec[i])