Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-22 Thread Matthias Michler
Hi Gökhan, Hi list, On Tuesday 21 April 2009 19:44:18 Gökhan SEVER wrote: > Hi Matthias, > > Thanks for your reply again. Unfortunately I can't read x_new or y_new > after I kill the figures (nor when they are active). I don't know what > exactly wrong in my configuration or IPython. I use IPython

[Matplotlib-users] Problem when embedding in GTK-Application

2009-04-22 Thread Thorsten Kranz
Good morning, I came across a problem when building matplotlib from source. On my desktop PC, running Ubuntu 8.10, I ran python setup.py build in an up-to-date svn checkout. The output (only dependencies, I don't want to send all output, will do this if required) ===

[Matplotlib-users] plot change position in wxpython when redraw

2009-04-22 Thread Guâno
Dear list fellows, I am writing an app focused in structural geology, using wxpython and matplotlib. To be quite honest, I'm not sure if this question should go here or in the wxpython list (so to avoid cross-posting, I'll try here first). The app uses matplotlib to plot data from orientation dat

Re: [Matplotlib-users] Tight axis after deletion of image

2009-04-22 Thread Armin Moser
Armin Moser schrieb: > Hi, > > i have an application showing some pseudo color plots as images using > imshow. After deleting an image and calling ax.axis('tight') the limits > of the axes are not updated correctly. Is this a bug, incorrect use or > intended? The behavior is demonstrated in the ap

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-22 Thread Gökhan SEVER
Huh, My definition of kill is just like you said. Inside Ipython print statements output x_new, and y_new values, but no context saving :( Worse thing is python rect.py does not nothing, not even with -d switch :( :( I will try with Ipython 0.9.1. Gökhan On Wed, Apr 22, 2009 at 4:40 AM, Matt

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread darkside
I think that not all de numbers use the same number of characters, the problem is the signed ones. This numbers use one more character for '-' and join the previous column. Your idea is quite good, but I don't know how to do it: If I use the pylab.load code, I suppose that I have to put something i

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread Gary Ruben
How about f = open(file) s = f.read() f.close() a = s.replace('E-','EE').replace('-',' -').replace('EE','E-') x = np.fromstring(a, sep=' ') Gary R. darkside wrote: > I think that not all de numbers use the same number of characters, the > problem is the signed ones. This numbers use one more ch

[Matplotlib-users] Animation with copy_from_bbox / restore_region

2009-04-22 Thread Elan Pavlov
I'm trying to use matplotlib for animating data as it is received from an online source (online in the algorithmic sense not internet:). I'd like the graph plot to be updated with high frequency since the data changes rapidly. I've used the BufferRegion with copy_from_bbox / restore_region and it s

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread darkside
Thanks, your solution is very good. But I have still one problem: the last line makes this: >>> x = np.fromstring(b,sep='') >>> x array([ 8.56506822e-072, 2.92021791e-033, 2.25187638e+006, ..., 6.99021630e-077, 1.39804329e-076, 2.66133772e-260]) As you can see, it doesn't load t

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread Jouni K . Seppänen
darkside writes: x = np.fromstring(b,sep='') That should be sep=' ' (a space) to make it read ASCII representations of numbers. Otherwise it will interpret the string as binary, and if the string length happens to be a multiple of 8, you get garbage data, otherwise it raises the following e

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread darkside
Thank your, but: If the initial list is: >>> a ' 0.0E+00 1.806088833E-02-4.959341557E+07 0.0E+00 0.0E+00\n' y = np.fromstring(a2,sep=' ') >>> y array([ 0.e+00, 1.80608883e-02, -4.95934156e+07, 0.e+00, 0.e+00]) It works perfectly. But

[Matplotlib-users] pylab quick reference? (

2009-04-22 Thread Esmail
Hello all, Does anyone know of a quick reference for the various plotting functions for pylab? I'm just getting started with this after years of work with gnuplot. I found this http://matplotlib.sourceforge.net/api/pyplot_api.html which is very comprehensive and would be good for digging int

Re: [Matplotlib-users] plot change position in wxpython when redraw

2009-04-22 Thread Christopher Barker
Carlos Guâno Grohmann wrote: > I am writing an app focused in structural geology, using wxpython and > matplotlib. To be quite honest, I'm not sure if this question should > go here or in the wxpython list Well, that depends on whether the shift is a shift of the wxWindow, or if MPL is somehow pu

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread Christopher Barker
darkside wrote: > Maybe because of the \n? Do I have to put them off before trying fromstring? yes == fromstring/fromfile doesn't deal with mixing \n and space (or any other sep char), which is too bad, because this is a common use. They could use some work in general. but if you do a: s = s.re

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

2009-04-22 Thread Ryan May
On Wed, Apr 22, 2009 at 10:11 AM, Elan Pavlov wrote: > I'm trying to use matplotlib for animating data as it is received from > an online source (online in the algorithmic > sense not internet:). I'd like the graph plot to be updated with high > frequency since the data changes rapidly. I've > us

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

2009-04-22 Thread Elan Pavlov
Yes, I'm using the line2D.set_data function along with the draw_artist (and a blit). I haven't made a line collection object since I don't think it will speed it up by around the factor 5 that I want. I'll try that but I still think that the ability to grab a large section of the canvas and move it

Re: [Matplotlib-users] pylab quick reference? (

2009-04-22 Thread Gökhan SEVER
Selam Esmail, I do not think there is an easy way of learning matplotlib. (Nor there is a quick ref to make your life easier.) I have learnt mostly by using matplotlib for my homeworks ( while everyone using IDL or Matlab) --which is in my opinion has been best way to adapt myself into scientific

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-22 Thread Gökhan SEVER
Still same with IPython 0.9.1 I will test on Win XP when I get a chance. Gökhan On Wed, Apr 22, 2009 at 8:54 AM, Gökhan SEVER wrote: > Huh, > > My definition of kill is just like you said. > > Inside Ipython print statements output x_new, and y_new values, but no > context saving :( > > Worse

Re: [Matplotlib-users] pylab quick reference? (

2009-04-22 Thread John Hunter
On Wed, Apr 22, 2009 at 10:30 AM, Esmail wrote: > Hello all, > > Does anyone know of a quick reference for the various plotting > functions for pylab? I'm just getting started with this > after years of work with gnuplot. > > I found this > > http://matplotlib.sourceforge.net/api/pyplot_api.htm

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

2009-04-22 Thread Michael Droettboom
At this point, the expected dependencies are on freetype for font rendering and Numpy and/or PIL for imaging. Nothing platform-specific. There aren't any plans to make it usable from other languages, but certainly a commandline interface would be trivial. Mike Kasper Peeters wrote: > Hi all,

Re: [Matplotlib-users] Memory leak in Agg backend?

2009-04-22 Thread Jesper Larsen
Hi Michael and others, Sorry for the late answer. I am on Ubuntu 8.10. Unfortunately I have not had time to look any more into the issue (which might very well be an error on my part) but I will return when I have more info (I have made a temporary fix). I tried using valgrind-massif to reproduce

Re: [Matplotlib-users] Memory leak in Agg backend?

2009-04-22 Thread Jesper Larsen
I forgot to mention that it seems like the issue is related to the Figure object (and not any foreign language extensions?). When a fig.clf() is added before the call to report_memory the memory usage is constant. Since I am reusing the Figure instance this is a problem for me. But maybe I just nee

[Matplotlib-users] does matplotlib install work???

2009-04-22 Thread John Seales
From: praxbaf...@hotmail.com To: matplotlib-users@lists.sourceforge.net Date: Tue, 21 Apr 2009 16:14:37 -0700 Subject: [Matplotlib-users] help installing matplotlib I have an intel mac running os 10.4.11. I use python 2.6 When I install matplotlib it seems to work, but then there is a b

Re: [Matplotlib-users] can't import pylab

2009-04-22 Thread Jouni K . Seppänen
John Seales writes: > Anyone have any help to get pylab working? Should I reinstall? What > method should I use? I guess you missed my previous reply asking for more details (I changed the subject so that people who know more about OS X might notice it): http://thread.gmane.org/gmane.comp.pytho