[Matplotlib-users] question about animation and widgets

2007-08-16 Thread bruno
Hello, I am probably reinventing the wheel. I am trying to get rolling graph a la labview with matplotlib. I have more or less managed to get what I want using the simple animation technique provided by matplotlib. I would like now to have a button an the same graph that would enable me to

Re: [Matplotlib-users] question about animation and widgets

2007-08-16 Thread bruno
Hi thanks for the answer. I am not sure to undersand completely the question. I based my animation on the example anim.py using the ion() function. Is that idle event ? I will have a look at the wx version an see if I undersand your advice. If ever you had code that you were willing to share I

Re: [Matplotlib-users] question about animation and widgets

2007-08-16 Thread bruno
in fact that may become clearer with my code. There are two classes. One does the animation. The other is supposed to add a button. The infinite loop is at the end Bruno Greg Willden a écrit : Hi Bruno, Which method are you using to do the animation? Timer, Idle Event? If you are using a

[Matplotlib-users] problem with set in current svn HEAD

2007-08-16 Thread Johann Cohen-Tanugi
hello, I must be doing something stupid I am trying to test the snippets of code in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf p.29, and I get : [EMAIL PROTECTED] python]$ python Python 2.5 (r25:51908, Apr 10 2007, 10:29:13) [GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2 Type

Re: [Matplotlib-users] problem with set in current svn HEAD

2007-08-16 Thread Matthieu Brucher
Hi, I think you must type : set(gca(), 'xticklabels', []) Matthieu 2007/8/16, Johann Cohen-Tanugi [EMAIL PROTECTED]: hello, I must be doing something stupid I am trying to test the snippets of code in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf p.29, and I get : [EMAIL

Re: [Matplotlib-users] problem with set in current svn HEAD

2007-08-16 Thread Anthony M. Floyd
Hi! 0x9c5a8ac] set(gca(), xticklabels=[]) Traceback (most recent call last): File stdin, line 1, in module TypeError: set() does not take keyword arguments Can somebody help me understand what goes wrong here? Python (since the docs were written) now has a built-in type called 'set'.

[Matplotlib-users] plot autorange

2007-08-16 Thread Peter Würtz
Hi, Sorry this might look like a really stupid question, but I have not been able to find an answer in the matplotlib documentation... When plotting data points using the o-style, some points are truncated by the axis borders. Is there a way to define some kind of margin without changing the x/y

Re: [Matplotlib-users] plot autorange

2007-08-16 Thread Eric Firing
Peter Würtz wrote: Hi, Sorry this might look like a really stupid question, but I have not been able to find an answer in the matplotlib documentation... Not a stupid question at all--it is more of a feature request. When plotting data points using the o-style, some points are truncated

[Matplotlib-users] PDF axis numbering messed up

2007-08-16 Thread Patrik Jonsson
Hi all, I've been making some plots with transparency and realized that in order to get a vector output I have to use the PDF backend instead of PS. However, the PDF plots have axis labels that are messed up. Instead of showing 10^3 it shows 10_3, ie all exponents are subscripts, and the axis

[Matplotlib-users] PDF transparency with Cairo backend

2007-08-16 Thread Patrik Jonsson
Hi again, A related question: I tried to generate my PDF output with the Cairo backend, which produces correct axis labels but no transparency. My impression is that Cairo supports transparency, so is this a deficiency in the backend? Or is there a trick? Thanks again, /Patrik

[Matplotlib-users] install problem: xlib link error

2007-08-16 Thread Steven Rodney
I've been trying to install matplotlib with interactive plotting support on a non-standard linux distribution (sidious.isani.org). I have successfully installed matplotlib 0.90.1 with python 2.4.3 and IPython 0.7.2. I can make plots with any of the image backends, but the TkAgg backend fails