[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Oct 10 18:08:45 PDT 2014
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/8246447bb43a/
Changeset: 8246447bb43a
Branch: yt
User: ChrisMalone
Date: 2014-10-01 22:44:04+00:00
Summary: pep8 spacing, and use proper delimiters in cbar label
Affected #: 1 file
diff -r 05de9b2f84be6cc8b933f0af75ac211a57a44d7d -r 8246447bb43adf8e8e99d5a9030a629fd25535a2 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -813,7 +813,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 +843,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:
https://bitbucket.org/yt_analysis/yt/commits/df28efd99890/
Changeset: df28efd99890
Branch: yt
User: ChrisMalone
Date: 2014-10-01 23:10:32+00:00
Summary: pep8 line-break and fix axes label
Affected #: 1 file
diff -r 8246447bb43adf8e8e99d5a9030a629fd25535a2 -r df28efd99890af13d77cc9e2bbdffd49745ba498 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.
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