[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Mar 17 11:10:09 PDT 2017


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/944b88797f2e/
Changeset:   944b88797f2e
Branch:      yt
User:        ngoldbaum
Date:        2017-03-14 15:12:20+00:00
Summary:     Make the ProfilePlot xlim snap exactly to the specified xlimits
Affected #:  1 file

diff -r 95401107ce0793c6b74d10c336f0633aaee990d5 -r 944b88797f2ec35d280e8559fdfda8d8fcf710d8 yt/visualization/profile_plotter.py
--- a/yt/visualization/profile_plotter.py
+++ b/yt/visualization/profile_plotter.py
@@ -84,6 +84,7 @@
     def __init__(self, plots):
         self.plots = plots
         self.ylim = {}
+        self.xlim = (None, None)
         super(AxesContainer, self).__init__()
 
     def __missing__(self, key):
@@ -357,6 +358,7 @@
             axes.set_xlabel(xtitle)
             axes.set_ylabel(ytitle)
             axes.set_ylim(*self.axes.ylim[fname])
+            axes.set_xlim(*self.axes.xlim)
             if any(self.label):
                 axes.legend(loc="best")
         self._set_font_properties()
@@ -539,6 +541,7 @@
         >>> pp.save()
 
         """
+        self.axes.xlim = (xmin, xmax)
         for i, p in enumerate(self.profiles):
             if xmin is None:
                 xmi = p.x_bins.min()


https://bitbucket.org/yt_analysis/yt/commits/398bded61777/
Changeset:   398bded61777
Branch:      yt
User:        ngoldbaum
Date:        2017-03-17 18:10:01+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2546)

Make the ProfilePlot xlim snap exactly to the specified xlimits

Approved-by: Andrew Myers <atmyers2 at gmail.com>
Approved-by: Michael  Zingale <michael.zingale at stonybrook.edu>
Approved-by: Britton Smith <brittonsmith at gmail.com>
Affected #:  1 file

diff -r af611d5623911feff3d7c03e72ff5f5163f2497b -r 398bded61777ec01e1bdf868edb966b7e52ece57 yt/visualization/profile_plotter.py
--- a/yt/visualization/profile_plotter.py
+++ b/yt/visualization/profile_plotter.py
@@ -84,6 +84,7 @@
     def __init__(self, plots):
         self.plots = plots
         self.ylim = {}
+        self.xlim = (None, None)
         super(AxesContainer, self).__init__()
 
     def __missing__(self, key):
@@ -357,6 +358,7 @@
             axes.set_xlabel(xtitle)
             axes.set_ylabel(ytitle)
             axes.set_ylim(*self.axes.ylim[fname])
+            axes.set_xlim(*self.axes.xlim)
             if any(self.label):
                 axes.legend(loc="best")
         self._set_font_properties()
@@ -539,6 +541,7 @@
         >>> pp.save()
 
         """
+        self.axes.xlim = (xmin, xmax)
         for i, p in enumerate(self.profiles):
             if xmin is None:
                 xmi = p.x_bins.min()

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