[Matplotlib-users] Problem with loglog and ls='steps'

2008-08-25 Thread Nicolas Champavert
Hi, I have a problem with the loglog function with ls='steps' (matplotlib version: 0.98.3). When I try to plot arrays with loglog(x,y,ls='steps'), nothing is drawn whereas loglog(x,y) and plot(x,y,ls='steps'): x=[10.,20.,30.,40.,50.] y=[0.09,0.02,0.02,0.03,0.01] pylab.loglog(x,y) #it works pyl

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,

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

2006-12-11 Thread Nicolas Champavert
en a écrit : > 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 mayb

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. >> I

[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