[Matplotlib-users] scipy, matplotlib import errors

2008-03-27 Thread John
Hello, could someone please help me understand a strange problem, possibly associated with PYTHONPATH. When I import matplotlib, pylab, or scipy from any directory other than the root installation directory, it fails. However, if I'm in the python installation directory there are no errors. Thanks

[Matplotlib-users] Zero length quiver/savefig bug

2008-03-27 Thread Andrew Charles
Quiver doesn't seem to be able to handle begin passed zeros for the vector lengths. The full error output is below. I'm running Leopard with macpython 2.5.2 using matplotlib-0.91.2-py2.5-macosx-10.3-i386.egg The following code does not work: rx = numpy.array([0.0,0.0]) ry = numpy.array([1.0,-1.0]

Re: [Matplotlib-users] [Pythonmac-SIG] py2app and matplotlib

2008-03-27 Thread Christopher Barker
Ronald Oussoren wrote: > That load command is for LC_UUID. The version of macholib in subversion > should have some support that is (basicly ignoring the entire load > command because macholib won't have to change it), could you test that > (easy_install macholib==dev)? Yup, that problem is sol

Re: [Matplotlib-users] saving a PNg jsut as dispalyed

2008-03-27 Thread Ryan Krauss
I guess you could read the rcParams value that corresponds to the screen display and set rcParams['savefig.dpi'] to that value (this might work): mydpi = rcParams['figure.dpi'] rcParams['savefig.dpi'] = mydpi But that seems slightly hackish and maybe not much more elegant than what you are curren

Re: [Matplotlib-users] Setting font family in ticks not possible. Bug?

2008-03-27 Thread Darren Dale
On Thursday 27 March 2008 01:27:28 pm Gerolf Ziegenhain wrote: > More complete: > > I tried all permunations of backends. Now I stick to PS, because I use > matplotlib from commandline with scripts. The environment is debian/etch > with a current version of matplotlib (self compiled). > > Try this

Re: [Matplotlib-users] saving a PNg jsut as dispalyed

2008-03-27 Thread Christopher Barker
Ryan Krauss wrote: > I think this line in the rc file is the trick > > #savefig.dpi : 100 nope. I think all that does is set the default dpi for savefig. I don't want any default, I want it to use the same dpi that is being used for display, and I don't know ahead of time what that is, I

Re: [Matplotlib-users] unicode filenames and MPL.

2008-03-27 Thread Michael Droettboom
Christopher Barker wrote: > Michael Droettboom wrote: > >> I think the real reason this wasn't done is that its tricky to do at the >> C level in a cross-platform way. At present it uses the regular POSIX >> fopen in C, which isn't really "Unicode aware". >> > > The actual error is from

[Matplotlib-users] problem compiling matplotlib latex (mathtext) using py2exe

2008-03-27 Thread Bob Cumming
Hi all, I have a application using a wxPython gui which has matplotlib figure, axes etc The code works fine and the display of mathtext works fine when run in python. When I compile it and try to display any text it doesn't render the text at all (this can be anything from a simple lett

Re: [Matplotlib-users] unicode filenames and MPL.

2008-03-27 Thread Christopher Barker
Michael Droettboom wrote: > I think the real reason this wasn't done is that its tricky to do at the > C level in a cross-platform way. At present it uses the regular POSIX > fopen in C, which isn't really "Unicode aware". The actual error is from trying to put the filename in a std::string, b

Re: [Matplotlib-users] Fwd: load data from string or array to Image

2008-03-27 Thread Christopher Barker
It's a very good idea, when posting questions to a list like this, to ask not only the specific question, but also give the background, so we can wee what problem you are trying to solve. sa6113 wrote: > I use matplotlib and Backend Agg to draw a plot , I want to show this plot in > my GUI in sp

Re: [Matplotlib-users] Setting font family in ticks not possible. Bug?

2008-03-27 Thread Gerolf Ziegenhain
More complete: I tried all permunations of backends. Now I stick to PS, because I use matplotlib from commandline with scripts. The environment is debian/etch with a current version of matplotlib (self compiled). Try this script from pylab import * t

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-27 Thread Chris Withers
Matthias Michler wrote: > I'm not sure that I understand you correctly. The code I refering is the one > which I attached some mails ago. The following works for me: Ah, okay, to get the problem I was having, change your script as follows: > --

[Matplotlib-users] does matplotlib have an analog to imagesc(x, y, X) of Matlab?

2008-03-27 Thread Vsevolod Kovalenko
Dear matplotlib I have a newbie question (I am new to python, migrating from Matlab). Just like the subject suggests, I need to display an image X stored in a matrix (well, a 2D numpy array in fact) versus the coordinates specified by arrays x and y. Further, it would be nice if mouse position wa

Re: [Matplotlib-users] [wxpython-users] Controlling the wxpython matplotlib-frame

2008-03-27 Thread Laurent Dufrechou
Have you tryied : ipython -pylab ? It launch an ipython shell that support mathplotlib gui loop. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] De la part de Wolfgang Kerzendorf Envoyé : mercredi 26 mars 2008 08:31 À : matplotlib-users@lists.sourceforge.net; [EMAIL

Re: [Matplotlib-users] Setting font family in ticks not possible. Bug?

2008-03-27 Thread Michael Droettboom
Gerolf Ziegenhain wrote: > Dear Mailinglist, > > Today I tried to change the fontset to sans-serif for a whole plot. > Everything except the ticks could be adjusted. > > > This is what I tried first: > *** > ffont = {'size':'20','family':'sans-se

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-27 Thread Matthias Michler
Hello Chris, On Thursday 27 March 2008 12:22, Chris Withers wrote: > Matthias Michler wrote: > >>> the above script leads > >>> to a different behaviour on my system. > >> > >> What is that behaviour and what version of matplotlib are you using? > > > > I think it is the expected behaviour. The nu

[Matplotlib-users] Setting font family in ticks not possible. Bug?

2008-03-27 Thread Gerolf Ziegenhain
Dear Mailinglist, Today I tried to change the fontset to sans-serif for a whole plot. Everything except the ticks could be adjusted. This is what I tried first: *** ffont = {'size':'20','family':'sans-serif'} xticks(**ffont) **

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-27 Thread Chris Withers
Matthias Michler wrote: >>> the above script leads >>> to a different behaviour on my system. >> What is that behaviour and what version of matplotlib are you using? > > I think it is the expected behaviour. The number of xtick is aproximately > constant and some tick get sorted out, when the xli

Re: [Matplotlib-users] Basemaps - shapefile import/display for points

2008-03-27 Thread KURT PETERS
And, before someone asks, "Why are you using "h" and this line: h= [seg[0]*0.000278,seg[1]*0.000278] ax.annotate(seqnum[nshape],h)", I was using this, instead, but tried to experiment with things to try to make things work right: ax.annotate(seqnum[nshape],seg) . I usually

[Matplotlib-users] Basemaps - shapefile import/display for points

2008-03-27 Thread KURT PETERS
OK Jeff, Thanks for your help on the previous question - I had been playing with different projections and resolutions, so that's why the comments didn't match the actual settings in the procedure calls. Now for a "real" problem: I'm trying to plot the cities from this web site: http://nation

Re: [Matplotlib-users] Not scaling properly? Am I doing something wrong?

2008-03-27 Thread Jeff Whitaker
KURT PETERS wrote: > I'm trying what I thought was a simple test and getting "bad" results. I am > taking some lat long coords, and feeding it into a map. The conversion is > not giving "real" values that can be plotted on a map (and actually produces > an error when I use annotate). > I'm inc

Re: [Matplotlib-users] unicode filenames and MPL.

2008-03-27 Thread Michael Droettboom
I think the real reason this wasn't done is that its tricky to do at the C level in a cross-platform way. At present it uses the regular POSIX fopen in C, which isn't really "Unicode aware". See the "Unicode filenames" section of the link below for some of the complications. Linux is particu

Re: [Matplotlib-users] Not scaling properly? Am I doing something wrong?

2008-03-27 Thread KURT PETERS
Forget it. I was putting lat/long instead of long/lat. Regards, Kurt - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.ne

[Matplotlib-users] Not scaling properly? Am I doing something wrong?

2008-03-27 Thread KURT PETERS
I'm trying what I thought was a simple test and getting "bad" results. I am taking some lat long coords, and feeding it into a map. The conversion is not giving "real" values that can be plotted on a map (and actually produces an error when I use annotate). I'm including the simple code and th

Re: [Matplotlib-users] Fwd: load data from string or array to Image

2008-03-27 Thread Anthony Floyd
On Wed, Mar 26, 2008 at 10:38 PM, sa6113 <[EMAIL PROTECTED]> wrote: > > I use matplotlib and Backend Agg to draw a plot , I want to show this plot in > my GUI in specific area (Plot area) , I need to have the image object in [snip] > Is it clear? Not to me :) Do you mean that you've already

Re: [Matplotlib-users] [newbie] "live" plots of multiple lines

2008-03-27 Thread Matthias Michler
On Wednesday 26 March 2008 19:39, Chris Withers wrote: > Matthias Michler wrote: > >> My x-axis is time, and as new points are plotted, even though I'm > >> following the above recipe pretty closely, the x-tick spacing isn't > >> getting sorted out, so I end up with just a jumble as the tick labels