[yt-svn] commit/yt: MatthewTurk: PhasePlots were transposed.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Dec 2 05:34:22 PST 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/681bb0b57391/
Changeset: 681bb0b57391
Branch: yt
User: MatthewTurk
Date: 2013-12-02 14:20:18
Summary: PhasePlots were transposed.
Affected #: 1 file
diff -r 4801ac940c84f1855b705baad29359de76853fd2 -r 681bb0b57391412cbcf0547d22b26e476f7c12e5 yt/visualization/profile_plotter.py
--- a/yt/visualization/profile_plotter.py
+++ b/yt/visualization/profile_plotter.py
@@ -727,14 +727,13 @@
def _init_image(self, x_data, y_data, image_data,
x_scale, y_scale, z_scale, zlim, cmap):
"""Store output of imshow in image variable"""
-
if (z_scale == 'log'):
norm = matplotlib.colors.LogNorm(zlim[0], zlim[1])
elif (z_scale == 'linear'):
norm = matplotlib.colors.Normalize(zlim[0], zlim[1])
self.image = None
self.cb = None
- self.image = self.axes.pcolormesh(x_data, y_data, image_data,
+ self.image = self.axes.pcolormesh(x_data, y_data, image_data.T,
norm=norm,
cmap=cmap)
self.axes.set_xscale(x_scale)
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