[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Oct 21 16:17:21 PDT 2014
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/a80b3cc5c655/
Changeset: a80b3cc5c655
Branch: yt
User: aaron_smith
Date: 2014-10-21 21:47:28+00:00
Summary: Fixed vmin.d minor ticks bug in profile_plotter.py
Affected #: 1 file
diff -r f75c6a2bc84426a9fdc6da2e48d33033143d5d08 -r a80b3cc5c655d629ae7474b63bf07958e38eb24f yt/visualization/profile_plotter.py
--- a/yt/visualization/profile_plotter.py
+++ b/yt/visualization/profile_plotter.py
@@ -864,9 +864,9 @@
if self._field_transform[f] == linear_transform:
self.plots[f].cax.minorticks_on()
else:
- vmin = self.plots[f].cb.norm.vmin
- vmax = self.plots[f].cb.norm.vmax
- mticks = self.plots[f].image.norm( get_log_minorticks(vmin.d, vmax.d) )
+ vmin = np.float64( self.plots[f].cb.norm.vmin )
+ vmax = np.float64( self.plots[f].cb.norm.vmax )
+ mticks = self.plots[f].image.norm( get_log_minorticks(vmin, vmax) )
self.plots[f].cax.yaxis.set_ticks(mticks, minor=True)
else:
self.plots[f].cax.minorticks_off()
https://bitbucket.org/yt_analysis/yt/commits/1fb34fd879d0/
Changeset: 1fb34fd879d0
Branch: yt
User: aaron_smith
Date: 2014-10-21 21:49:46+00:00
Summary: Fixed vmin.d minor ticks bug in plot_window.py
Affected #: 1 file
diff -r a80b3cc5c655d629ae7474b63bf07958e38eb24f -r 1fb34fd879d0f912e531eb69253b82df9b28ffc8 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -889,13 +889,13 @@
if self._field_transform[f] == linear_transform:
self.plots[f].cax.minorticks_on()
else:
- vmin = self.plots[f].cb.norm.vmin
- vmax = self.plots[f].cb.norm.vmax
+ vmin = np.float64( self.plots[f].cb.norm.vmin )
+ vmax = np.float64( self.plots[f].cb.norm.vmax )
if self._field_transform[f] == log_transform:
mticks = self.plots[f].image.norm( get_log_minorticks(vmin, vmax) )
else: # symlog_transform
flinthresh = 10**np.floor( np.log10( self.plots[f].cb.norm.linthresh ) )
- mticks = self.plots[f].image.norm( get_symlog_minorticks(flinthresh, vmin.d, vmax.d) )
+ mticks = self.plots[f].image.norm( get_symlog_minorticks(flinthresh, vmin, vmax) )
self.plots[f].cax.yaxis.set_ticks(mticks, minor=True)
else:
self.plots[f].cax.minorticks_off()
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list