[yt-svn] commit/yt: mzingale: Merged in ChrisMalone/yt (pull request #1232)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Oct 10 18:08:47 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/bcd4895dd002/
Changeset:   bcd4895dd002
Branch:      yt
User:        mzingale
Date:        2014-10-11 01:08:38+00:00
Summary:     Merged in ChrisMalone/yt (pull request #1232)

use `\left` and `\right` delimiters in axes labels
Affected #:  1 file

diff -r efbdf46a82e1052081d64f71c70654a0c8c36ef4 -r bcd4895dd0021a121432cf8b50a4df7306064eba yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -755,9 +755,10 @@
             hinv = False
             for i, un in enumerate((unit_x, unit_y)):
                 if hasattr(self.ds.coordinates, "default_unit_label"):
-                    axax = getattr(self.ds.coordinates, "%s_axis" % ("xy"[i]))[axis_index]
+                    axax = getattr(self.ds.coordinates,
+                                   "%s_axis" % ("xy"[i]))[axis_index]
                     un = self.ds.coordinates.default_unit_label[axax]
-                    axes_unit_labels[i] = '\/\/('+un+')'
+                    axes_unit_labels[i] = '\/\/\left('+un+'\right)'
                     continue
                 # Use sympy to factor h out of the unit.  In this context 'un'
                 # is a string, so we call the Unit constructor.
@@ -813,7 +814,7 @@
                             1, self.xlim, self.ylim)
                     else:
                         ymin, ymax = [float(y) for y in extenty]
-                    self.plots[f].image.set_extent((xmin,xmax,ymin,ymax))
+                    self.plots[f].image.set_extent((xmin, xmax, ymin, ymax))
                     self.plots[f].axes.set_aspect("auto")
 
             x_label, y_label, colorbar_label = self._get_axes_labels(f)
@@ -843,7 +844,7 @@
                 if units is None or units == '':
                     pass
                 else:
-                    colorbar_label += r'$\/\/('+units+r')$'
+                    colorbar_label += r'$\/\/\left('+units+r'\right)$'
 
             parser = MathTextParser('Agg')
             try:

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