On Thu, Mar 25, 2010 at 4:17 PM, Tom Kuiper <kui...@jpl.nasa.gov> wrote:

>
> > Date: Thu, 25 Mar 2010 13:17:01 -0500
> > From: G?khan Sever <gokhanse...@gmail.com>
> > Subject: Re: [SciPy-User] milliseconds in matplotlib.dates?
> > To: SciPy Users List <scipy-u...@scipy.org>
> > Cc: Matplotlib Users <matplotlib-users@lists.sourceforge.net>
> >
> ...
> > Alternatively, you might use just floating-point version of your time
> values
> > and with a little adjustment (Ryan mentioned this in the recently, and
> will
> > forward there for other suggestions) millisecond resolutions should be
> > visible when zoomed in furthest.
> >
> > Something like:
> >
> > sci_fmt = plt.FormatStrFormatter("%.2f")
> > plt.gca().xaxis.set_major_formatter(sci_fmt)
> >
> Here's how I modified my code:
> sci_fmt = FormatStrFormatter("%.2f")
> fig = figure()
> top_axes = subplot(211)
> top_axes.xaxis.set_major_formatter(sci_fmt)
> #plot_date(times,kurts,fmt='b-')
> #plot_date(times,kurt_sm,fmt='r-',label=("Hamming 1-sec FWHM"))
> plot(times,kurts,'b-')
> plot(times,kurt_sm,'r-',label=("Hamming 1-sec FWHM"))
> I then restarted 'ipython -pylab' because I've noticed that date
> formatting problems seems to linger even after a code change.  However,
> I see no change in behaviour.  I can get six 1-sec ticks across my
> plot.  If I expand the plot any more, the ticks disappear.
>
> Regards
>
> Tom
> _______________________________________________
> SciPy-User mailing list
> scipy-u...@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>

Here is how it looks when I run your code till plot(times...)

http://img202.imageshack.us/img202/5415/ss1i.png

and one with zoom:

http://img411.imageshack.us/img411/8292/ss2el.png

I am not sure this could be related to the mpl version you have.


-- 
Gökhan
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to