Sandro Tosi wrote:
Where 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?
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:
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 : fig.autofmt_xdate(bottom=0.18) # adjust for correct date labels display
Thanks, this one helps a lot.0
However, 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.
StickPlot.py (9.4 KB)
Christopher Barker, Ph.D.
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