[Matplotlib-users] IOError: decoder jpeg not available

2008-11-06 Thread Nils Wagner
Hi all, I tried to read a jpg file. How can fix the following problem ? File test.py, line 15, in module im = imshow(lena, origin='lower') File /data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyplot.py, line 1915, in imshow ret = gca().imshow(*args, **kwargs)

[Matplotlib-users] graphs removing gaps to left and right,

2008-11-06 Thread oliver marks
hi, I have successfully written my first test program in matlab, it works perfectly except the display is not quite right, to the left and write of the plotted data there are blank areas with nothing on, how can i get rid of these a link to the image is attached, and the code is below. hope

Re: [Matplotlib-users] How to insert a new button?

2008-11-06 Thread sordnay
Thanks for your answer Gregor, I'm using TkAgg backend, I hope is also that simple there! Gregor Thalhammer-2 wrote: This depends on the backend/GUI toolkit you use. If you use wx, a simple approach might be the following: -- from pylab import * import wx def

Re: [Matplotlib-users] How to insert a new button?

2008-11-06 Thread Gregor Thalhammer
sordnay schrieb: Hi I would like to insert a new button on the standard figure toolbar, is there an easy way? maybe someone can post an example This depends on the backend/GUI toolkit you use. If you use wx, a simple approach might be the following: -- from pylab import *

Re: [Matplotlib-users] IOError: decoder jpeg not available

2008-11-06 Thread Nils Wagner
On Thu, 06 Nov 2008 13:28:21 +0100 Gregor Thalhammer [EMAIL PROTECTED] wrote: Nils Wagner schrieb: Hi all, I tried to read a jpg file. How can fix the following problem ? Which operating system are you using? The problem arise in the PIL (Python Imaging Library). It cannot find the

Re: [Matplotlib-users] IOError: decoder jpeg not available

2008-11-06 Thread Gregor Thalhammer
Nils Wagner schrieb: Hi all, I tried to read a jpg file. How can fix the following problem ? Which operating system are you using? The problem arise in the PIL (Python Imaging Library). It cannot find the libjpeg library (you have it installed on your system?). Try to install libjpeg

Re: [Matplotlib-users] graphs removing gaps to left and right,

2008-11-06 Thread Ryan May
oliver marks wrote: hi, I have successfully written my first test program in matlab, it works perfectly except the display is not quite right, to the left and write of the plotted data there are blank areas with nothing on, how can i get rid of these a link to the image is attached, and the

[Matplotlib-users] Combine jpegs

2008-11-06 Thread Nils Wagner
Hi all, Is it possible to combine jpegs with matplotlib or PIL ? Any pointer would be appreciated. Nils - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based

[Matplotlib-users] matplotlib-users@lists.sourceforge.net

2008-11-06 Thread paratribulations
Hi everybody, I have a problem with my application using Tkinter. To simplify, here follows a small program showing the encountered problem: from pylab import * a = arange( 10 ) plot( 0.5*a, cos(a) ) gca().set_autoscale_on(False) plot( a, cos(a), 'r' )

Re: [Matplotlib-users] matplotlib-users@lists.sourceforge.net

2008-11-06 Thread Michael Droettboom
Why are you turning autoscaling off and on? When you turn it off, the autoscale mechanism effectively ignores any plots until you turn it back on. If you remove gca().set_autoscale_on(False) all seems to work fine. Is your question that you want to autoscale to a plot after creating it?

Re: [Matplotlib-users] How to change yticks on colorbar?

2008-11-06 Thread Mark Bakker
Thanks Stan. I read the docs (which are quite nice), but couldn't find a way to set the ticks after the fact. But your method worked, Mark On Wed, Nov 5, 2008 at 4:00 PM, Stan West [EMAIL PROTECTED] wrote: *From:* Mark Bakker [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, November 05, 2008

Re: [Matplotlib-users] How to change yticks on colorbar?

2008-11-06 Thread Stan West
From: Mark Bakker [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2008 10:48 Thanks Stan. I read the docs (which are quite nice), but couldn't find a way to set the ticks after the fact. But your method worked, Mark It seems to me that setting the ticks after the fact is more

Re: [Matplotlib-users] IOError: decoder jpeg not available

2008-11-06 Thread Christopher Barker
Nils Wagner wrote: I tried to read a jpg file. How can fix the following problem ? Centos4.6 (Linux) libjpeg.rpm is installed. How do did you build/install PIL? It may not have found libjpeg when it was built, in which case it wouldn't support jpegs. Is it possible to combine jpegs with

Re: [Matplotlib-users] Combine jpegs

2008-11-06 Thread John Hunter
On Thu, Nov 6, 2008 at 9:00 AM, Nils Wagner [EMAIL PROTECTED] wrote: Hi all, Is it possible to combine jpegs with matplotlib or PIL ? Any pointer would be appreciated. if you have PIL installed, you can load them into mpl with imread, and then set the alpha channel to make one partially

[Matplotlib-users] Python 2.6

2008-11-06 Thread KURT PETERS
I recently tried to install for python 2.6 and got an error that the dll is incompatible. Is there a version for 2.6? I didn't see one here: http://sourceforge.net/project/showfiles.php?group_id=80706package_id=278194release_id=608758 Kurt

Re: [Matplotlib-users] Python 2.6

2008-11-06 Thread Michael Droettboom
There hasn't been a release of matplotlib since Python 2.6 was released, and in general, Python packages only work with a specific version of Python. You can build yourself from SVN (which has some minor fixes for Python-2.6 compatibility), or wait until the next binary release. I haven't

Re: [Matplotlib-users] Python 2.6

2008-11-06 Thread John Hunter
On Thu, Nov 6, 2008 at 11:28 AM, KURT PETERS [EMAIL PROTECTED] wrote: I recently tried to install for python 2.6 and got an error that the dll is incompatible. Is there a version for 2.6? I didn't see one here: No, we haven't released any binaries for 2.6. It is probably getting to be time

Re: [Matplotlib-users] Python 2.6

2008-11-06 Thread Jeff Whitaker
John Hunter wrote: On Thu, Nov 6, 2008 at 11:28 AM, KURT PETERS [EMAIL PROTECTED] wrote: I recently tried to install for python 2.6 and got an error that the dll is incompatible. Is there a version for 2.6? I didn't see one here: No, we haven't released any binaries for 2.6. It

[Matplotlib-users] axvspan/axvline trashes view limits

2008-11-06 Thread Ben Gamari (FOSS)
Hey all, I've come across quite a problem while using pylab in a recent project. It seems that the second time I call axvspan or axvline, the view limits are reset (seemingly arbitrarily). I have attached a code sample (derived from my project) to demonstrate this issue. The code sample opens a

[Matplotlib-users] Plotting Edgeworth Box, or else locating axes origin north-east

2008-11-06 Thread Paolo Crosetto
Hello, I have a problem I tried to solve in any way,a nd couldn't. I want to plot an Edgeworth Box with matplotlib. To do so, I need to create a plot with origin on the north-east corner with axes scales going the wrong way. For an idea of how an EB works, see:

[Matplotlib-users] Plotting Edgeworth Box, or else locating axes origin north-east

2008-11-06 Thread Paolo Crosetto
Hello, I have a problem I tried to solve in any way,a nd couldn't. I want to plot an Edgeworth Box with matplotlib. To do so, I need to create a plot with origin on the north-east corner with axes scales going the wrong way. For an idea of how an EB works, see: