[yt-svn] commit/yt-3.0: MatthewTurk: Display names weren't getting passed through to the plotwindow
Bitbucket
commits-noreply at bitbucket.org
Wed Aug 22 10:55:45 PDT 2012
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/changeset/760e2b61baa3/
changeset: 760e2b61baa3
branch: yt-3.0
user: MatthewTurk
date: 2012-08-22 19:55:38
summary: Display names weren't getting passed through to the plotwindow
affected #: 1 file
diff -r 7acef43a54b131d9f75c0680b9e2cbc6f333d1ee -r 760e2b61baa3f255400e9a42f017bbfe88d39d18 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -671,10 +671,11 @@
self.plots[f].axes.set_ylabel(labels[1])
ftype, fname = f
+ field_name = self.data_source._get_field_info(ftype, fname).display_name
if md['units'] == None or md['units'] == '':
- label = r'$\rm{'+fname.encode('string-escape')+r'}$'
+ label = r'$\rm{'+field_name.encode('string-escape')+r'}$'
else:
- label = r'$\rm{'+fname.encode('string-escape')+r'}\/\/('+md['units']+r')$'
+ label = r'$\rm{'+field_name.encode('string-escape')+r'}\/\/('+md['units']+r')$'
self.plots[f].cb.set_label(label)
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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