[Matplotlib-users] Embed in GTK + dynamic plot

2009-05-02 Thread Sandro Tosi
Hi all! I'd like to embed a mpl graph into a GTK application (and for that embedding_in_gtk*.py examples are fine) but I would also like to dynamically update the graph with time. Consider like if I want to plot some dynamic system information, like cpu usage, memory occupation, or so. Than I

Re: [Matplotlib-users] Enforcing common view limits

2009-05-02 Thread Thomas Robitaille
I've realized that using the ParasiteAxes from the mpl_toolkits should do exactly what I'm asking. However, I am having a problem with callbacks when the x and y limits change (try resizing the window). The following script shows that the callback for the second set of axes is not carried out. Is

Re: [Matplotlib-users] Enforcing common view limits

2009-05-02 Thread Thomas Robitaille
There was a typo in the script, the callbacks should be ax.name = first axis ax.callbacks.connect('xlim_changed',check_callback) ax.callbacks.connect('ylim_changed',check_callback) ax2 = ax.twin() ax2.name = second axis ax2.callbacks.connect('xlim_changed',check_callback)

[Matplotlib-users] Fast imshow plotting

2009-05-02 Thread Joey Wilson
I am creating a script that generates images and displays them to the screen in real time. I created the following simple script: __ #!/usr/bin/env python from pylab import * from scipy import * for k in range(1,1): img = standard_normal((40,40))

Re: [Matplotlib-users] Fast imshow plotting

2009-05-02 Thread Thomas Robitaille
Not sure if this will help, but maybe you can do something like this? --- #!/usr/bin/env python from pylab import * from scipy import * img = standard_normal((40,40)) image = imshow(img,interpolation='nearest',animated=True,label=blah) for k in range(1,1): img =

Re: [Matplotlib-users] Fast imshow plotting

2009-05-02 Thread Eric Firing
Thomas Robitaille wrote: Not sure if this will help, but maybe you can do something like this? --- #!/usr/bin/env python from pylab import * from scipy import * To run this as a standalone script, without ipython -pylab, you need to include: ion() img = standard_normal((40,40))

[Matplotlib-users] different vertical axes scales

2009-05-02 Thread Gideon Simpson
I have two time series, {u_j} and {v_j}, with vastly different scales, but all sampled at the same times, {t_j}. Is there an easy way to plot the two on the same figure, with different vertical axes on the left and the right? -gideon

Re: [Matplotlib-users] different vertical axes scales

2009-05-02 Thread John Hunter
On Sat, May 2, 2009 at 5:00 PM, Gideon Simpson simp...@math.toronto.eduwrote: I have two time series, {u_j} and {v_j}, with vastly different scales, but all sampled at the same times, {t_j}. Is there an easy way to plot the two on the same figure, with different vertical axes on the left and

Re: [Matplotlib-users] Embed in GTK + dynamic plot

2009-05-02 Thread John Hunter
On Sat, May 2, 2009 at 9:42 AM, Sandro Tosi mo...@debian.org wrote: Hi all! I'd like to embed a mpl graph into a GTK application (and for that embedding_in_gtk*.py examples are fine) but I would also like to dynamically update the graph with time. Consider like if I want to plot some

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

2009-05-02 Thread Freddie Witherden
Hi all, For those that are interested I have finally (now that my first batch of exams are finished) set-up a blog so that you can track the progress of the project. My blog can be found here: http://gsoc-mathtex.blogspot.com/ (no marks for originality ;). I intend to update it on a

Re: [Matplotlib-users] Another Gnuplot style question

2009-05-02 Thread Eric Firing
Matthias Michler wrote: Hello Eric, Hello list, a year ago I also encountered the problem of one file - one figure of the plotfile function. I would like to propose an addional functionality of using one figure and several files in plotfile, because sometimes I don't want to read data

[Matplotlib-users] Matplotlib interactive with gtk, gtkcairo, gtkagg backends

2009-05-02 Thread Michiel de Hoon
Hi everybody, For those of you that are using the gtk, gtkcairo, or gtkagg backends: Today pygtk version 2.15.0 became available, which is the first pygtk that can be used interactively from both python and ipython. If you're using ipython, be sure to wait for release 0.10.0 of ipython before

Re: [Matplotlib-users] Enforcing common view limits

2009-05-02 Thread Jae-Joon Lee
ax.twin returns a ParasiteAxesAuxTrans instance which is derived from the mpl's original Axes, but only drawing-related methods are meant to be meaningful. For example, this axes is never meant to be added to the figure and the draw method of this axes is never meant to be called. I haven't looked

[Matplotlib-users] hierarchical clustering with dendrograms in matplotlib?

2009-05-02 Thread per freem
hi all, is there a way to plot the results of hierarchical clustering as a dendrogram on top and to the sides of a heatmap matrix? for example, like this figure: http://www.egms.de/figures/meetings/gmds2006/06gmds075.f1.png any examples of how to do this in matplotlib would be greatly