|
From: Steve C. <ste...@ya...> - 2004-05-09 05:58:13
|
On Sat, 2004-05-08 at 20:47, John Hunter wrote:
> ax = subplot(111)
>
> #your plot here
> for tick in ax.xaxis.get_minor_ticks():
> tick.label1.set_y(-0.1)
>
Thanks for the advice, but I tried this and the tick labels disappeared
completely. I then tried
tick.label1.set_y(0.0)
which I would expect to leave the labels at the same place, but the
labels disappeared also.
I had a look at matplotlib.dates and found what looks like a
problem/limitation.
This is my understanding, which may be completely wrong.
The python 'time' module (and epochtime) limits years to 1970-2038.
The 'egenix' and python 'datetime' modules support a much larger range
of years ('datetime supports years from 1-9999).
matplotlib.dates converter classes supports 'epochtime', 'datetime' and
'egenix' date formats. However, internally it uses epochtime for all
dates and so limits all years to the range 1970-2038, even though
'datetime' and 'egeinx' themselves support much more that this.
I think there is a lot of data available before 1970 that people might
like to plot. Taking stock data as an example, Yahoo has data going back
to 1962 for some companies.
Regards
Steve
|