[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun May 4 07:56:34 PDT 2014
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/0c5e3d62a3fe/
Changeset: 0c5e3d62a3fe
Branch: yt
User: ngoldbaum
Date: 2014-05-04 06:35:17
Summary: Fixing an issue with PhasePlot ignoring display_names of fields.
Affected #: 1 file
diff -r 2d487f4a53627602f608511d8990d21c5e45256a -r 0c5e3d62a3fe3d28534ea681b8908e95f573b44e yt/visualization/profile_plotter.py
--- a/yt/visualization/profile_plotter.py
+++ b/yt/visualization/profile_plotter.py
@@ -574,13 +574,13 @@
if field_name is None:
field_name = r'$\rm{'+field+r'}$'
elif field_name.find('$') == -1:
- field_name = r'$\rm{'+field+r'}$'
+ field_name = r'$\rm{'+field_name+r'}$'
if units is None or units == '':
label = field_name
else:
label = field_name+r'$\/\/('+units+r')$'
return label
-
+
def _get_field_log(self, field_z, profile):
pf = profile.data_source.pf
zfi = pf.field_info[field_z]
https://bitbucket.org/yt_analysis/yt/commits/efee8a1b2424/
Changeset: efee8a1b2424
Branch: yt
User: ngoldbaum
Date: 2014-05-04 06:40:11
Summary: Fixing the same issue in ProfilePlot.
Affected #: 1 file
diff -r 0c5e3d62a3fe3d28534ea681b8908e95f573b44e -r efee8a1b24244cf0de4ba5dfea4f67df8f6dcadb yt/visualization/profile_plotter.py
--- a/yt/visualization/profile_plotter.py
+++ b/yt/visualization/profile_plotter.py
@@ -433,7 +433,7 @@
if field_name is None:
field_name = r'$\rm{'+field+r'}$'
elif field_name.find('$') == -1:
- field_name = r'$\rm{'+field+r'}$'
+ field_name = r'$\rm{'+field_name+r'}$'
if units is None or units == '':
label = field_name
else:
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