Commits

Sam Skillman committed 2f4a551

Moving to swapaxes.

  • Participants
  • Parent commits 2c5e547

Comments (0)

Files changed (1)

yt/data_objects/image_array.py

             filename += '.png'
 
         if clip_ratio is not None:
-            return write_bitmap(np.flipud(self).transpose(1,0,2), filename,
+            return write_bitmap(self.swapaxes(0, 1), filename,
                                 clip_ratio * self.std())
         else:
-            return write_bitmap(np.flipud(self).transpose(1,0,2), filename)
+            return write_bitmap(self.swapaxes(0, 1), filename)
 
     def save(self, filename, png=True, hdf5=True):
         """