[Matplotlib-users] OverflowError while plotting dates

2006-12-11 Thread Yannick Copin
Hi, on the following test case: import numpy import pylab from matplotlib.dates import DateFormatter, HourLocator, MinuteLocator fig = pylab.figure() ax = fig.add_subplot(1,1,1) tics = numpy.linspace(1.3,1.6,4) for tic in tics: t = numpy.linspace(tic, tic+0.01, 100) ax.plot(t, numpy.r

Re: [Matplotlib-users] more outdated/unhelpful documentation and installation issues on Mac OS X 10.4

2006-12-11 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, belinda thom <[EMAIL PROTECTED]> wrote: > Hi again, > > At http://matplotlib.sourceforge.net/installing.html under topic OS X: > >"All of the backends run on OS X. Chris Barker has built a binary > package (fink users see below) for matplotlib which is host

Re: [Matplotlib-users] spy ignores negative values?

2006-12-11 Thread Eric Firing
Robert Cimrman wrote: [...] > What could be done, though, is to raise an exception explaining that > sparse matrices and the image mode don't like each other; as it is, the > function spy3 just dies on asarray (should be st. like asarray( > Z.todense() )) (I think it would be Z.toarray().) Goo

Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-11 Thread Eric Firing
Yannick Copin wrote: > Hi, > > Eric Firing wrote: >>> from pylab import * >>> X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) >>> Z = randn(*X.shape) >>> lev = linspace(Z.min(),Z.max(),11)[1:-1] >>> contourf(X,Y,Z, lev, extend='both') >>> contour(X,Y,Z, lev, colors='k') >>> show() >> >> Now,

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Nicolas Champavert
Steve Schmerler a écrit : > Darren Dale wrote: > >> On Monday 11 December 2006 09:59, Nicolas Champavert wrote: >> >>> Steve Schmerler a écrit : >>> Nicolas Champavert wrote: > Hello, > > I have some problems when trying to save a figure with usetex=T

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Steve Schmerler
Darren Dale wrote: > On Monday 11 December 2006 09:59, Nicolas Champavert wrote: >> Steve Schmerler a écrit : >>> Nicolas Champavert wrote: Hello, I have some problems when trying to save a figure with usetex=True. Sometimes, it is not possible to save the figure when trying t

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Darren Dale
On Monday 11 December 2006 09:59, Nicolas Champavert wrote: > Steve Schmerler a écrit : > > Nicolas Champavert wrote: > >> Hello, > >> > >> I have some problems when trying to save a figure with usetex=True. > >> Sometimes, it is not possible to save the figure when trying to put an > >> xlabel w

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Nicolas Champavert
No the '\' is not the problem. \odot is a LaTeX command. I still have the problem if I don't use it (see below with only pylab.xlabel(r'Upper mass for the IMF (10$^3$)')) and \\odot writes 'odot' and doesn't write the 'odot' symbol. Gary Ruben a écrit : > I haven't tried it, but my guess is th

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Nicolas Champavert
Steve Schmerler a écrit : > Nicolas Champavert wrote: > >> Hello, >> >> I have some problems when trying to save a figure with usetex=True. >> Sometimes, it is not possible to save the figure when trying to put an >> xlabel with LaTeX inside. >> It works with pylab.xlabel('M$_\odot$') but no

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Steve Schmerler
Nicolas Champavert wrote: > Hello, > > I have some problems when trying to save a figure with usetex=True. > Sometimes, it is not possible to save the figure when trying to put an > xlabel with LaTeX inside. > It works with pylab.xlabel('M$_\odot$') but not with > pylab.xlabel('10$^3$ M$_\odo

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Gary Ruben
I haven't tried it, but my guess is the '\' character is the problem. > pylab.xlabel('10$^3$ M$_\odot$') Try pylab.xlabel(r'10$^3$ M$_\odot$') ^ Add raw string marker. or maybe pylab.xlabel('10$^3$ M$_\\odot$') Gary R. Nicolas Champavert wrote: > Hello, > > I hav

Re: [Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Darren Dale
On Monday 11 December 2006 7:12 am, Nicolas Champavert wrote: > Hello, > > I have some problems when trying to save a figure with usetex=True. > Sometimes, it is not possible to save the figure when trying to put an > xlabel with LaTeX inside. > It works with pylab.xlabel('M$_\odot$') but not wit

[Matplotlib-users] Problem with savefig and usetex

2006-12-11 Thread Nicolas Champavert
Hello, I have some problems when trying to save a figure with usetex=True. Sometimes, it is not possible to save the figure when trying to put an xlabel with LaTeX inside. It works with pylab.xlabel('M$_\odot$') but not with pylab.xlabel('10$^3$ M$_\odot$') (see below). Do you know why ? In

[Matplotlib-users] Sourceforge archives display [Was: two y axes via twinx and legends]

2006-12-11 Thread Yannick Copin
Hi, belinda thom <[EMAIL PROTECTED]> wrote on [EMAIL PROTECTED]: > Also, the mail archives I'm viewing look terrible: line breaks aren't > in the usual place, things are presented with >'s in them (which > would make sense if the line breaks were preserved, b/c they > correspond to pieces o

Re: [Matplotlib-users] Merge colorbars from imshow and contour

2006-12-11 Thread Yannick Copin
Hi, Eric Firing wrote: >> in a case similar to matplotlib-0.87.7/examples/contour_demo.py >> (figure 4), would it be possible to merge to two colorbars (a >> continuous one from imshow, a discrete one from contour) into a single >> colorbar? Indeed, in that case, the two colorbars are mostly re

Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-11 Thread Yannick Copin
Hi, Eric Firing wrote: >> from pylab import * >> X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) >> Z = randn(*X.shape) >> lev = linspace(Z.min(),Z.max(),11)[1:-1] >> contourf(X,Y,Z, lev, extend='both') >> contour(X,Y,Z, lev, colors='k') >> show() > > Now, you may be wondering why we can't s

Re: [Matplotlib-users] spy ignores negative values?

2006-12-11 Thread Robert Cimrman
Eric Firing wrote: > Robert Cimrman wrote: >> Eric Firing wrote: >>> Robert and any other spy users: >>> >>> I have committed to svn a new axes method, spy3, that combines a >>> modification of the functionality of both spy and spy2. I hope you >>> can check it out. If it looks OK, then I would