[Matplotlib-users] mathtext in legend ?

2006-06-09 Thread Nils Wagner
Hi all, Can I use formulas within the legend command, e.g. legend( ('$\sin(x)$', '$\cos(x)$'), loc='upper left') Nils ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-us

Re: [Matplotlib-users] mathtext in legend ?

2006-06-09 Thread John Hunter
> "Nils" == Nils Wagner <[EMAIL PROTECTED]> writes: Nils> Hi all, Can I use formulas within the legend command, e.g. Nils> legend( ('$\sin(x)$', '$\cos(x)$'), loc='upper left') You can, but there are two problems with your example. One, you need to be using "raw" strings if you are

[Matplotlib-users] "X Error: BadDevice" when initializing matplotlib

2006-06-09 Thread massimo sandal
Hi, I recently installed matplotlib 0.87.3 (compiled from source) on a kubuntu 6.06 I notice, both when using mpl embedded into an application and when using it with pylab, that before drawing a new graph window the following error happens: X Error: BadDevice, invalid or uninitialized input

Re: [Matplotlib-users] OSError when exporting figure in EPS

2006-06-09 Thread massimo sandal
Darren Dale ha scritto: I noticed the following error when in my application I try to export the plot in EPS format. The odd thing is that the export actually works and produces a good eps file, but nevertheless... File "hooke.py", line 354, in ExportImage #that's my wxpython+MPL app self.f

Re: [Matplotlib-users] OSError when exporting figure in EPS

2006-06-09 Thread Darren Dale
I cant reproduce this. Are you sure it's a problem with matplotlib? It looks like its a problem with shutil and os.utime, not mpl. Are you sure you have write privileges for the file and the directory? Could another (k)ubuntu Dapper user please give this a try? On Friday 09 June 2006 11:42, mas

Re: [Matplotlib-users] Problems with new colorbar

2006-06-09 Thread Eric Firing
Nikolai Hlubek wrote: > Hi everyone > > First of all I'd like to thank you for all your work > since many bugs which I found to be quite annoying have been > fixed in the latest version. > > But I ran into trouble with the new colorbar. As you can see in the > attached picture horizontal lines ar

[Matplotlib-users] matplotlib, numpy, numarray

2006-06-09 Thread humufr
Hi, just to tell that the new quiver2 sample are not working with numarray. /usr/lib/python2.4/site-packages/matplotlib/quiver.py", line 237, in _make_verts scale = nx.amax(a) * math.sqrt(len(a)) # crude auto-scaling AttributeError: 'module' object has no attribute 'amax'

Re: [Matplotlib-users] OSError when exporting figure in EPS

2006-06-09 Thread Fernando Perez
On 6/9/06, Darren Dale <[EMAIL PROTECTED]> wrote: > I cant reproduce this. Are you sure it's a problem with matplotlib? It looks > like its a problem with shutil and os.utime, not mpl. Are you sure you have > write privileges for the file and the directory? Could another (k)ubuntu > Dapper user ple

Re: [Matplotlib-users] matplotlib, numpy, numarray

2006-06-09 Thread Christopher Barker
[EMAIL PROTECTED] wrote: > I think that we will have soon a big problem with the scientific soft in > python. Some of them will use numpy, Numeric or numarray and they will be > totally incompatible. I understand and to some extent share, your frustration, but the problem already existed with

[Matplotlib-users] Differences in appearance between FigureCanvasAgg and FigureCanvasWxAgg

2006-06-09 Thread Tom Denniston
FigureCanvasAgg seems to make fonts appear much larger that FigureCanvasWxAgg. I am trying to get plots generated interactively in a wx window to appear the same as those that I generate in a no display batch script that outputs .png files. I use FigureCanvasWxAgg for the former and FigureCanvasA