Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread Eric Firing
Ernest Adrogué wrote: > 14/10/09 @ 02:38 (+0200), thus spake qu...@gmx.at: >> okay. don't shoot me >> >> you need to start ipython with: >> >>ipython -pylab >> > > or alternatively, start ipython normally, import matplotlib.pyplot > and then call matplotlib.pylot.ion() which turns the 'interac

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread Ernest Adrogué
14/10/09 @ 02:38 (+0200), thus spake qu...@gmx.at: > okay. don't shoot me > > you need to start ipython with: > >ipython -pylab > or alternatively, start ipython normally, import matplotlib.pyplot and then call matplotlib.pylot.ion() which turns the 'interactive mode' on. then when you cre

[Matplotlib-users] help with fill_between and a colorbar

2009-10-13 Thread John
Hello, I have the following function as an example. You can see I started to play with one of the demos to put a colorbar on it. I'm a little confused how to make this work, as on my figure I have several 'collections'. The other examples I have seen deal with one collection. Maybe someone could sh

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
> From: jsw...@fastmail.fm > Subject: Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, > python 2.6 > To: petersk...@msn.com > > KURT PETERS wrote: > > OK, that got me a hair further :-) With your suggestion I got past > > that speed bump by: > > sudo apt-get install tk8.5-dev

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
KURT PETERS wrote: > OK, that got me a hair further :-) With your suggestion I got past > that speed bump by: > sudo apt-get install tk8.5-dev tcl8.5-dev > > Now the error is a little more sinister. I did a tiny bit of research > and some posts says the error could be due to no installation of

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
OK, that got me a hair further :-) With your suggestion I got past that speed bump by: sudo apt-get install tk8.5-dev tcl8.5-dev Now the error is a little more sinister. I did a tiny bit of research and some posts says the error could be due to no installation of g++. but... [code] sudo ap

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread qubax
okay. don't shoot me you need to start ipython with: ipython -pylab as noted in: http://matplotlib.sourceforge.net/users/shell.html made someone else can benefit from my mistake sorry for bothering you q On Wed, Oct 14, 2009 at 02:09:21AM +0200, qu...@gmx.at wrote: > but i want to: > 1)

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread Jeff Whitaker
qu...@gmx.at wrote: > but i want to: > 1) plot something > 2) go on in ipython (with the figure/plot staying on) > > is that really not possible? > > thanks, > q > That's exactly what happens in ipython (in pylab mode), if you don't call show. -Jeff > On Tue, Oct 13, 2009 at 03:54:22PM -060

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
KURT PETERS wrote: > Apparently, I have two :-) > > $ sudo find / -name "tk.h" > > /usr/include/tcl8.4/tk.h > /usr/include/tcl8.4/tk-private/generic/tk.h But you need /usr/include/tcl8.5/tk.h. Matplotlib is detecting a tk 8.5 installation, so it's looking for a tk 8.5 header. -Jeff > > Kurt >

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
Apparently, I have two :-) $ sudo find / -name "tk.h" /usr/include/tcl8.4/tk.h /usr/include/tcl8.4/tk-private/generic/tk.h Kurt > Date: Tue, 13 Oct 2009 15:55:51 -0600 > From: jsw...@fastmail.fm > Subject: Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, > python 2.6 > To: pe

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread qubax
but i want to: 1) plot something 2) go on in ipython (with the figure/plot staying on) is that really not possible? thanks, q On Tue, Oct 13, 2009 at 03:54:22PM -0600, Jeff Whitaker wrote: > qu...@gmx.at wrote: > > Greetings. > > > > What i want to do is something like: > > > > ipython ... > >

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
Well, while I waited for more help/thoughts on the matter, I happened to have another machine with Jaunty 9.04 that I thought I'd give a try I consolidated the install down with the "apt-get" commands at the bottom, and matplotlib failed on the new machine as well (but took longer to fail possi

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
KURT PETERS wrote: > Jeff, >I had already had tk-dev installed: > $ sudo apt-get install tk-dev > Reading package lists... Done > Building dependency tree > Reading state information... Done > tk-dev is already the newest version. > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

Re: [Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread Jeff Whitaker
qu...@gmx.at wrote: > Greetings. > > What i want to do is something like: > > ipython ... > > > > t=linspace(0,2,50) > y=sin(2*pi*t) > > pyplot.plot(t,y) > pyplot.show() > > > > I get the plot here ... but now i want to do some more stuff in > the ipython shell (and possibly have the plot

[Matplotlib-users] plotting from within ipython, and then go on in the shell calculations

2009-10-13 Thread qubax
Greetings. What i want to do is something like: ipython ... t=linspace(0,2,50) y=sin(2*pi*t) pyplot.plot(t,y) pyplot.show() I get the plot here ... but now i want to do some more stuff in the ipython shell (and possibly have the plot still open) How do i free the shell from the pl

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
Jeff, I had already had tk-dev installed: $ sudo apt-get install tk-dev Reading package lists... Done Building dependency tree Reading state information... Done tk-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded Please see my latest... This is

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
Getting closer... I'm going to post the sum total of "apt-get installs" I had to do to get matplotlib installed when I get it working (prelim. is at the end of this message). I'm thinking on this one, something with ltk in it, but none of these look promising: [code] apt-cache search tk | gr

[Matplotlib-users] [Solved] Little issue with blitting technique

2009-10-13 Thread Laurent Dufréchou
Hey, coparing on how GTK2 example is done I've seen a difference between the two! In QT4Agg example and WX example the code use: canvas.copy_from_bbox(ax.bbox) replacing all occurrence of ax.bbox with ax.get_figure().bbox solved all the issue I add. Perhaps we should correct the examples. I ca

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-13 Thread Laurent Dufréchou
I've just installer GTK on windows + tested your file and it works... Moreover, I've modified the source to make the code use QT4Agg instead of GTK and the bug does not appears. So I think it is more an issue of misusing bliting technique in other examples. (still your gtk example is more beautifu

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Eric Firing
KURT PETERS wrote: > OK, I got by the tk part by installing tk-dev, but now get: [...] > build/temp.linux-i686-2.6/CXX/cxxextensions.o -L/usr/local/lib > -L/usr/local/lib -ltk8.5 -ltcl8.5 -lstdc++ -lm -lfreetype -lz -lstdc++ > -lm -o build/lib.linux-i686-2.6/matplotlib/backends/_tkagg.so > /usr/b

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread Jeff Whitaker
KURT PETERS wrote: > I'm pretty sure I have all the required minimal dependencies > installed, but get an error when I sudo python setup.py build. Any > thoughts? I can start python and import Tkinter without an error. So > I don't know why it's not finding it. > > [code] > sudo python setup.

Re: [Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
OK, I got by the tk part by installing tk-dev, but now get: [code] sudo python setup.py build BUILDING MATPLOTLIB

[Matplotlib-users] cannot install kubuntu 9.04 mpl 0.99.1.1, python 2.6

2009-10-13 Thread KURT PETERS
I'm pretty sure I have all the required minimal dependencies installed, but get an error when I sudo python setup.py build. Any thoughts? I can start python and import Tkinter without an error. So I don't know why it's not finding it. [code] sudo python setup.py build ===

[Matplotlib-users] Installing matplotlib on mac os 10.6 (Snow Leopard)?

2009-10-13 Thread William Carithers
I've not been able to find a successful way to install matplotlib since upgrading to OS 10.6. There doesn't seem to be an egg for it. Easy_install matplotlib finds an old version (0.91) that is not compatible with the new numpy supplied by Apple. Easy_install matplotlib-0.99.1 can't find it. Likewi

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-13 Thread Laurent Dufrechou
Hello, I've tested so far with wx and QT4 backend. The two are buggy. Easy way to reproduce the bug (another way I mean) ax = p.subplot(212) ax2 = p.subplot(211) and the two backends got the same error. Note that I'm under windows. I'll try under linux tonight just to check. I'll also try gtk b

Re: [Matplotlib-users] Little issue with blitting technique

2009-10-13 Thread Jae-Joon Lee
I haven't tested it with qt4, but with gtk, add_axes DOES work. So, can you try other backends and see if they work? And, I believe that add_subplot -> add_axes is a only change you made? Unless the problem is persistent among other backends, I hope other developers who use qt4 backend step in a

Re: [Matplotlib-users] unclutter the axis

2009-10-13 Thread Jae-Joon Lee
On Mon, Oct 12, 2009 at 11:45 AM, Ernest Adrogué wrote: > hi, > > is there a way to put a label every two o three ticks, > instead of putting it on every tick? I personally think it is best to use major ticks with labels and minor ticks w/o labels. > > the following works but it's a little cumbe

Re: [Matplotlib-users] Draw twin axes below main axes

2009-10-13 Thread Jae-Joon Lee
On Tue, Oct 13, 2009 at 2:52 AM, Georg Brandl wrote: > BTW, from Gnuplot I missed the ability to press "q" to close a figure window > and wrote a custom key handler to do that; would it make sense to add that > by default? gui and event handling is not my field, but as far as it is easily customi

Re: [Matplotlib-users] nonlinear axes for imshow

2009-10-13 Thread Jae-Joon Lee
On Tue, Oct 13, 2009 at 2:48 AM, thkoe002 wrote: > > Hi Eric, > > thanks for the help, but this doesn't do what I want. > I don't want to change the image in any way, I just want the axes to have a > decreasing spacing. I made a small example with ms paint to clarify. > > http://www.nabble.com/fil

[Matplotlib-users] How to setup zdata on Line3D ?

2009-10-13 Thread Cédrick FAURY
Hello, I can't find the way to change the "zdata" on a Line3D object. (mpl 99.1) I would like to use setp ... Thanks by advance Cédrick -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only d

Re: [Matplotlib-users] nonlinear axes for imshow

2009-10-13 Thread thkoe002
Hi Eric, thanks for the help, but this doesn't do what I want. I don't want to change the image in any way, I just want the axes to have a decreasing spacing. I made a small example with ms paint to clarify. http://www.nabble.com/file/p25867951/axes.png I could do this with ax.set_xticks() and