Re: [Matplotlib-users] matplotlib and cron

2008-05-08 Thread Andrew Straw
Andre, my guess is that there's an attempt made to connect to the (non-existant) X server. You can disable this by forcing a backend that doesn't need the X server. Try import matplotlib matplotlib.use('Agg') before the rest of your script. Andre Wong wrote: Hi I am attempting to generate

[Matplotlib-users] Easiest way of drawing a circle?

2008-05-08 Thread Søren Nielsen
Hi, I'm using wxpython with matplotlib, I now have a figurecanvas embedded in my program and I can plot stuff using: a = self.fig.gca() a.plot(x,y) But what is the easiest and fastest way to draw a circle? I saw that the artist class has a draw_arc function.. but I don't know how to use the

Re: [Matplotlib-users] Easiest way of drawing a circle?

2008-05-08 Thread Manuel Metz
Søren Nielsen wrote: Hi, I'm using wxpython with matplotlib, I now have a figurecanvas embedded in my program and I can plot stuff using: a = self.fig.gca() a.plot(x,y) But what is the easiest and fastest way to draw a circle? I saw that the artist class has a draw_arc function.. but

Re: [Matplotlib-users] adding a box (domain) on a basemap map

2008-05-08 Thread Scott Sinclair
Hi Nicolas, The attached script should illustrate one way to solve your problem. Cheers, Scott Nicolas [EMAIL PROTECTED] 05/07/08 2:25 PM Hi all sorry for posting this question that might have been answered before, but I'm in the urgent need of finding a way to overlay a rectangular box on a

[Matplotlib-users] pyplot.plotfile - bug report and extension proposal

2008-05-08 Thread Matthias Michler
Hello all, first of all I want to thank the developers for the plotfile-function. Nevertheless I would like to report a bug of the function and propose addional functionality. I added a patch including the following changes: - circumvent the NameError in the case of len(cols)==1 (N is not

Re: [Matplotlib-users] LateX Legend

2008-05-08 Thread Darren Dale
On Thursday 08 May 2008 5:13:20 am Yves Revaz wrote: Dear List, How is it possible to write legend text with LateX fonts ? Even with rc('text', usetex=True) the legend created with the command legend do not appear with LateX fonts. I try something like : pt.legend(('$\rm{total

Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Michael Droettboom
We need some more information. Can you set verbose.level to debug-annoying in your ~/.matplotlib/matplotlibrc file? Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb? gdb python GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh) Copyright 2004

Re: [Matplotlib-users] Square brackets in mathtext (version 0.91.2)

2008-05-08 Thread Michael Droettboom
It's a bug in 0.91.2. This has been fixed on the maintenance branch (if you're comfortable using SVN), or we do plan to release a bugfix 0.91.3 release soon. Cheers, Mike Maxim Fedorovsky wrote: Dear all, The following TeX expression did not produce any error message with

Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Michael Droettboom
It looks like matplotlib was built for a different version of iconv than what you have on your machine. This may be a scisoft packaging problem, you may want to bring this question to their attention. Perhaps the version of OSX that scisoft was built on/for is different than what you're

Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Antonino Cucchiara
Is there anything I can do to update it by myself in the meanwhile? Thanks, Nino Michael Droettboom wrote: It looks like matplotlib was built for a different version of iconv than what you have on your machine. This may be a scisoft packaging problem, you may want to bring this question to

Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Michael Droettboom
You could try rebuilding matplotlib yourself. There are some OS-X directions here: http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html This may mean, however, that it won't play nice with other parts of scisoft. But this really is a matter of how and where scisoft was built

[Matplotlib-users] Possible to disable wxAgg's smoothing of an image?

2008-05-08 Thread Søren Nielsen
Hi, I have a displayed an image with imshow() under wxPython, and it looks great with the WxAgg figure canvas.. but sometimes I want to actually see pixels when I zoom.. and not just a nice smoothed image. Is it possible to disable the smoothing? The way it is now, I will never see square pixels

Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Antonino Cucchiara
Hi Mike, I re-install the astronomy scisoft package and now the segmentation fault is not anymore present when I import matplotlib.mathtext. But when I import pylab I have the following error. I think it's something related with my backend choise. I tried to change all the GUI possibilities in

Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Antonino Cucchiara
Thanks, I just had to replace the /usr/lib/libiconv.2.dylib with the one I have in /sw/lib/ directory . Now the GTK, GTKAgg backend work. Nino Michael Droettboom wrote: You could try rebuilding matplotlib yourself. There are some OS-X directions here:

Re: [Matplotlib-users] Possible to disable wxAgg's smoothing of an image?

2008-05-08 Thread Michael Droettboom
You can pass an interpolation parameter to imshow, or set a default in image.interpolation in your matplotlibrc. From the imshow docstring: * interpolation is one of: 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite',

Re: [Matplotlib-users] Square brackets in mathtext (version 0.91.2)

2008-05-08 Thread Maxim Fedorovsky
Thanks a lot for the help) I have noticed that \angstrom is not anymore supported in 0.91. With best regards, Maxim Fedorovsky. Forgot to mention -- you could also apply this patch to your local copy of mathtext.py

Re: [Matplotlib-users] segmentation fault with pylab

2008-05-08 Thread Michael Droettboom
Great. You may still want to let the scisoft guys know about this so others won't hit up against it. Cheers, Mike Antonino Cucchiara wrote: Thanks, I just had to replace the /usr/lib/libiconv.2.dylib with the one I have in /sw/lib/ directory . Now the GTK, GTKAgg backend work. Nino

Re: [Matplotlib-users] Square brackets in mathtext (version 0.91.2)

2008-05-08 Thread Michael Droettboom
You can use \AA for angstrom (to conform to the (La)TeX standard). Cheers, Mike Maxim Fedorovsky wrote: Thanks a lot for the help) I have noticed that \angstrom is not anymore supported in 0.91. With best regards, Maxim Fedorovsky. Forgot to mention -- you could also apply this patch to

[Matplotlib-users] Type 3 fonts

2008-05-08 Thread Christopher Brown
Hi List, I recently subjected some figures to an online 'quality analysis' done by a journal I am submitting a paper to. The analysis stated that my figures (created with mpl's pdf backend, and using whatever default fonts are used) used type 3 fonts, and that I should use type 1 whenever

[Matplotlib-users] How to handle different Figures, created from different instances

2008-05-08 Thread dertom
Hallo, I'm quite new to matplotlib and have a problem, I was searching a solution for the whole day :( The thing is, I want to show different Figures at different states of my main application. So it is not possible for me, to perform the standard procedure, that may looks like: code

[Matplotlib-users] Toolbar in QT

2008-05-08 Thread Behnam Kamrani
Hi, First I want to thanks for this amazing Matplotlib. It's fantastic! My newbie question is how I can show the (zoom, pan, etc) toolbar in embedding_in_qt.py example? I have noticed that in animation_blit_qt.py the toolbar is available, but it seems to be done in a different way. Appreciate

Re: [Matplotlib-users] Type 3 fonts

2008-05-08 Thread Jouni K . Seppänen
Christopher Brown [EMAIL PROTECTED] writes: I have read a little bit online about the difference between types 1 and 3, but I can't find a description of which font is which type. So what font should I use? Try setting the pdf.fonttype parameter in your matplotlibrc file to 42 and see if the

Re: [Matplotlib-users] Type 3 fonts

2008-05-08 Thread Jouni K . Seppänen
Christopher Brown [EMAIL PROTECTED] writes: I have read a little bit online about the difference between types 1 and 3, but I can't find a description of which font is which type. So what font should I use? Try setting the pdf.fonttype parameter in your matplotlibrc file to 42 and see if the

Re: [Matplotlib-users] Possible to disable wxAgg's smoothing of an image?

2008-05-08 Thread Søren Nielsen
On Thu, May 8, 2008 at 3:52 PM, Michael Droettboom [EMAIL PROTECTED] wrote: You can pass an interpolation parameter to imshow, or set a default in image.interpolation in your matplotlibrc. From the imshow docstring: * interpolation is one of: 'nearest', 'bilinear',

[Matplotlib-users] Rotating an axes

2008-05-08 Thread Bryan Fodness
Can someone tell me if there is a way to rotate an axes instance? I have, figure(1) ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95') ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='white') and I would like to rotate ax2 30 degrees. It would look something like the attached file. --

Re: [Matplotlib-users] Toolbar in QT

2008-05-08 Thread Ted Drain
The toolbar is just a widget so you can do that the same way you show any other widget in Qt. Something along the lines of: - build a widget - add a layout - add the figure widget to the layout - add the toolbar to the layout - connect them

Re: [Matplotlib-users] Type 3 fonts

2008-05-08 Thread Christopher Brown
Hi Jouni, JKS Try setting the pdf.fonttype parameter in your matplotlibrc file to JKS 42 and see if the resulting file passes validation. Matplotlib This produces a good-looking pdf. Unfortunately, It'll be a few weeks before I can test it with the online figure check program, since the that

[Matplotlib-users] axes scale factor not showing

2008-05-08 Thread Tim Mitchell
Hi, When matplotlib uses an axis multiplier, as in x-axis in the script below, the scale factor is not positioned properly on the figure as is shown in the attached picture. The 'x1e+30' in the bottom right corner is clipped unless I enlarge the window. import Numeric, gtk