Re: [Matplotlib-users] revision 7064 compile bug :

2009-04-24 Thread Eric Firing
Xavier Gnata wrote: > Hi, > > I'm trying to compile revision 7064 on a fresh kubuntu 9.04 > > I get this error: > > g++ -pthread -shared -Wl,-O1 > -Wl,-Bsymbolic-functionsbuild/temp.linux-x86_64-2.6/src/agg_py_transforms.o > build/temp.linux-x86_64-2.6/src/_gtkagg.obuild/temp.linux-x86_64-2.6/

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Ryan May wrote: > On Fri, Apr 24, 2009 at 5:52 AM, Esmail wrote: > >> Ryan May wrote: >>> Any idea if it's possible to finish a Python program but still have >> the >>> graph showing? >>> >>> FWIW, I'm doing this under Linux. >>> >>> >>> You'd have to run the plotting in a separate pr

Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Jouni K . Seppänen
Ondrej Certik writes: > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? Yes, with twinx: see http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=t

Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Ryan May
On Fri, Apr 24, 2009 at 3:02 PM, Ondrej Certik wrote: > Hi, > > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? > > I want to plot an atomic potential (one scale

Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Sandro Tosi
Hi Ondrej, nice to see you here :) On Fri, Apr 24, 2009 at 22:02, Ondrej Certik wrote: > Hi, > > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? sure, twinx() i

[Matplotlib-users] two scales in the same plot

2009-04-24 Thread Ondrej Certik
Hi, is there a way to have one plot with two functions, one using some scale, the other one a different scale and show for example one scale on the left, the other scale on the right? I want to plot an atomic potential (one scale) and the corresponding wave functions (different scale) in the same

Re: [Matplotlib-users] GSoC: TeX rendering engine

2009-04-24 Thread Freddie Witherden
Hi all, Sorry it has taken me so long to get back to you all however I am in the middle of exam season and so time is scarce. For the most part the (current) code is agnostic with regards to the rendering backend. The only real functionality required is the ability to draw lines and plot

[Matplotlib-users] revision 7064 compile bug :

2009-04-24 Thread Xavier Gnata
Hi, I'm trying to compile revision 7064 on a fresh kubuntu 9.04 I get this error: g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functionsbuild/temp.linux-x86_64-2.6/src/agg_py_transforms.o build/temp.linux-x86_64-2.6/src/_gtkagg.obuild/temp.linux-x86_64-2.6/src/mplutils.o build/temp.linux-x86_

Re: [Matplotlib-users] SpanSelector on multiple figures

2009-04-24 Thread Jae-Joon Lee
On Fri, Apr 24, 2009 at 4:09 AM, fjldurodie wrote: > Hi, > > Thanks for your reply : > > I think I will try and follow your last suggestion by passing a callback > function that is defined through another function (this is because the > program generates a series of figures that are all similar) :

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Ryan May
On Fri, Apr 24, 2009 at 5:52 AM, Esmail wrote: > Ryan May wrote: > > > > Any idea if it's possible to finish a Python program but still have > the > > graph showing? > > > > FWIW, I'm doing this under Linux. > > > > > > You'd have to run the plotting in a separate process from the > >

Re: [Matplotlib-users] subplots and text?

2009-04-24 Thread granquet
Ryan May wrote: > On Fri, Apr 24, 2009 at 8:41 AM, granquet > wrote: > > Hello, > I just discovered matplotlib (and python). > I got things running pretty fast/easily (thx to the good > documentation) > but I got a problem with texts and subplots. >

[Matplotlib-users] Integrating matplotlib into a GUI

2009-04-24 Thread Gökhan SEVER
Hello, So far, I have been spending many nice hours using matplotlib from within an IPython shell. However, the number of variables that are inside my session is getting higher the more I deep into data analysis. As a result I want to go one step further and carry my efforts on integrating matplot

Re: [Matplotlib-users] Getting updated axes bounding box

2009-04-24 Thread Jae-Joon Lee
Hi Ryan, The Axes in the svn version of the mpl has a "axes_locator" property , which is meant to be used to update the location of the axes at the drawing time. Try to insert the following code before the "show" and see if it works for you. from matplotlib.transforms import Bbox def update_po

[Matplotlib-users] mail-archive URLs on gmane (was: 2 simple ??: program exit w/graph, update graph real-time)

2009-04-24 Thread Jouni K . Seppänen
Esmail writes: >> http://www.mail-archive.com/matplotlib-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f >> @public.gmane.org/msg10873.html > > Sounds interesting, but I get a "page not found 404" type error when > I follow this link. That's because you are reading the list via Gmane, which is set to man

Re: [Matplotlib-users] subplots and text?

2009-04-24 Thread Ryan May
On Fri, Apr 24, 2009 at 8:41 AM, granquet wrote: > Hello, > I just discovered matplotlib (and python). > I got things running pretty fast/easily (thx to the good documentation) > but I got a problem with texts and subplots. > > -text tend to overlap previous subplots. this is more annoying than a

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-24 Thread Jae-Joon Lee
On Thu, Apr 23, 2009 at 2:32 PM, Elan Pavlov wrote: > Hi Jae-Joon, > Thanks a ton! The problem is actually not the frequency of changes. > The current method uses draw_artist on each update. However, the time > for draw_artist is linear in the *number* of points so for graphs with > a large amount

[Matplotlib-users] subplots and text?

2009-04-24 Thread granquet
Hello, I just discovered matplotlib (and python). I got things running pretty fast/easily (thx to the good documentation) but I got a problem with texts and subplots. -text tend to overlap previous subplots. this is more annoying than a real issue ... but still, It looks blatantly dirty... I had

Re: [Matplotlib-users] Segmentation fault using imshow on large image

2009-04-24 Thread Michael Droettboom
On my machine (32-bit Fedora 10 with 2GB RAM), it chugs along swapping for a lng time and then fails with a Python MemoryError exception -- which is at least reasonable. I suspect you're running on a 64-bit machine and we're running into some sort of non-64-bit-clean issue. We try to be 64

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Esmail wrote: > Robert Cimrman wrote: >> This is exactly what I have tried/described in [1], using the >> multiprocessing module. It sort of works, but I have that hanging >> problem at the end - maybe somebody jumps in and helps this time :) >> >> r. >> >> [1] >> http://www.mail-archive.com/mat

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Esmail
Robert Cimrman wrote: > > This is exactly what I have tried/described in [1], using the > multiprocessing module. It sort of works, but I have that hanging > problem at the end - maybe somebody jumps in and helps this time :) > > r. > > [1] > http://www.mail-archive.com/matplotlib-users@lists

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Esmail
Ryan May wrote: > > Any idea if it's possible to finish a Python program but still have the > graph showing? > > FWIW, I'm doing this under Linux. > > > You'd have to run the plotting in a separate process from the > computation. subprocess would let you do that, assuming you can

Re: [Matplotlib-users] SpanSelector on multiple figures

2009-04-24 Thread fjldurodie
Hi, Thanks for your reply : I think I will try and follow your last suggestion by passing a callback function that is defined through another function (this is because the program generates a series of figures that are all similar) : def gen_onselect(ax): def onselect: # do the stuf

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Hi Ryan, Ryan May wrote: > On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > >> Ryan May wrote: >>> Try this: >>> >>> >> http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html >>> (If not gtk, there are other examples there.) >> Thanks Ryan, that'll give me some idea with regar