climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject svn commit: r1508243 - /incubator/climate/branches/RefactorInput/ocw/plotter.py
Date Mon, 29 Jul 2013 23:41:28 GMT
Author: goodman
Date: Mon Jul 29 23:41:28 2013
New Revision: 1508243

URL: http://svn.apache.org/r1508243
Log:
CLIMATE-229 - Fixed issue with the x-axis tick locator for monthly time series plots

Modified:
    incubator/climate/branches/RefactorInput/ocw/plotter.py

Modified: incubator/climate/branches/RefactorInput/ocw/plotter.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/plotter.py?rev=1508243&r1=1508242&r2=1508243&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/plotter.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/plotter.py Mon Jul 29 23:41:28 2013
@@ -483,6 +483,8 @@ def draw_time_series(datasets, times, la
         if label_month:
             xfmt = mpl.dates.DateFormatter('%b')
             ax.xaxis.set_major_formatter(xfmt)
+            ax.xaxis.set_major_locator(xloc)
+            ax.xaxis.set_major_formatter(xfmt)
     
         # Set the y-axis scale
         ax.set_yscale(yscale)



Mime
View raw message