Sandro Tosi wrote:
mpl.ticker.AutoDateLocator mpl.ticker.AutoDateFormatterWhere might I find these now? They don't seem to be in matplotlib.ticker or matplotlib.date. do they have a new name? Is there a new way to get automatic date tic location and formating?
dates.AutoDateFormatter dates.AutoDateLocator
thanks -- I did just find it myself, by looking at the code in axes.plot_dates -- however, the plot_dates docstring is wrong, and they don't seem to be here:
http://matplotlib.sourceforge.net/api/dates_api.html They are there in the diagram on top, but don't seem to be on the page.
note: I'm trying to do this for the x axis of a quiver plot, which doesn't seem to support passing in dates directly.
by the way, is that a bug that should be tracked down and fixed?
simple snippet (with some additional formatting and stuff you might need):
thanks. In this case, I'm writing plotting code that I want to work with time series that may span hours, or days, or weeks, or months, ...
hence by desire for Auto Formatting. It does work, but not all that well, though:
In [19]: fig.autofmt_xdate(bottom=0.18) # adjust for correct date labels display
Thanks, this one helps a lot.0However, in this case, I'm trying to write method that takes an axes object, and plots to that -- how can I do this without the figure reference?
But it does work well if you apply it to the figure after my plotting routines.
see enclosed for what I'm doing -- this is for plotting wind data and the like, where you have a time series of speeds and directions.
-Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov
StickPlot.py
Description: application/python
------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users