[Yt-svn] commit/yt: MatthewTurk: Adding linear locator to self-contained plotter.

Bitbucket commits-noreply at bitbucket.org
Fri Jun 3 13:32:57 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/af1065d27f5f/
changeset:   af1065d27f5f
branches:    
user:        MatthewTurk
date:        2011-06-03 22:32:49
summary:     Adding linear locator to self-contained plotter.
affected #:  1 file (90 bytes)

--- a/yt/visualization/profile_plotter.py	Fri Jun 03 13:29:29 2011 -0700
+++ b/yt/visualization/profile_plotter.py	Fri Jun 03 13:32:49 2011 -0700
@@ -37,7 +37,7 @@
     BinnedProfile1D, \
     BinnedProfile2D
 from .plot_types import ProfilePlot, PhasePlot
-from .tick_locators import LogLocator
+from .tick_locators import LogLocator, LinearLocator
 from yt.utilities.logger import ytLogger as mylog
 
 def invalidate_plot(f):
@@ -57,6 +57,8 @@
     def calculate_ticks(self):
         if self.scale == 'log':
             locator = LogLocator()
+        elif self.scale == 'linear':
+            locator = LinearLocator()
         else:
             raise NotImplementedError
         self.ticks = locator(*self.bounds)

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