Re: [matplotlib-devel] date2num/num2date and ordinal date

2008-06-04 Thread Stephane Raynaud
Hi, On Tue, Jun 3, 2008 at 10:59 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > > There are alternate versions num2date and a date2num in basemap that handle > arbitrary calendars (not just 'proleptic gregorian') and arbitrary reference > times (not just 'days since 0001-01-01 00:00:00'). The doc

Re: [matplotlib-devel] empty mathtext "$$" in labels generates an exception

2008-06-04 Thread Michael Droettboom
I see that this isn't a LaTeX error, but I think Tony's comment is still somewhat valid. Since mathtext's parser is a direct subset of LaTeX's, and since $$ is a syntax error in LaTeX, it also is in mathtext. (This is really a side effect of make such a direct copy of the parser, rather than

[matplotlib-devel] more hist() suggestions

2008-06-04 Thread Olle Engdegård
Hi, Some more thoughts about hist(): A "range" parameter should be added and used in histogram() A new histogram should get a new colour, just like plot() does The "step" type should default to fill=False Actually, personally I hardly ever use bar histograms at all, so if step-mode (unfilled)

Re: [matplotlib-devel] date2num/num2date and ordinal date

2008-06-04 Thread Ted Drain
Sorry - I don't think I was very clear in my email. Try this: import pylab as p p.plot( [] () p.gca().xaxis_date() p.show() While this is a silly example, we do a lot of embedding of plots in GUI's and this does come up. Normal MPL mode is something like: - get data - plot data - configure and

Re: [matplotlib-devel] date2num/num2date and ordinal date

2008-06-04 Thread John Hunter
On Wed, Jun 4, 2008 at 12:01 PM, Ted Drain <[EMAIL PROTECTED]> wrote: > Sorry - I don't think I was very clear in my email. Try this: > > import pylab as p > p.plot( [] () > p.gca().xaxis_date() > p.show() I did understand that in your first post, but I was focusing more on your comments about a

Re: [matplotlib-devel] empty mathtext "$$" in labels generates an exception

2008-06-04 Thread Michael Droettboom
I was able to fix this without too much trouble, so I have committed it on the trunk. Cheers, Mike Jörgen Stenarson wrote: > Michael Droettboom skrev: >> I see that this isn't a LaTeX error, but I think Tony's comment is >> still somewhat valid. Since mathtext's parser is a direct subset of >

[matplotlib-devel] Classic Toolbar in backend_gtk out of sync with API changes

2008-06-04 Thread Chris Fuller
The old "classic" toolbar is out of sync with some API updates. This is what I get when running embedding_in_gtk2.py (after tweaking to use the classic toolbar) Traceback (most recent call last): File "embedding_in_gtk2.py", line 39, in toolbar = NavigationToolbar(canvas, win) File "c:\