[Matplotlib-users] Watermarking figures/axes

2008-03-05 Thread Anthony Floyd
I'm stumped. I would like to 'watermark' a plot. That is, display an image 'under' several lines. I would like this watermark to be static and not change location, shape, or size while allowing for the lines to be zoomed and panned. I'm doing this all using the API (not pylab). I've tried usin

Re: [Matplotlib-users] Interactive Replotting

2008-03-05 Thread Ryan May
Ryan May wrote: > Hi, > > I'm trying to get matplotlib to replot a pcolor image as data in a file > is updated. What's the proper way to do this? The best approach I > could come up with is as follows: Ok, I hadn't noticed the dynamic_image_gtkagg.py example before. I'm pretty sure this wil

[Matplotlib-users] Interactive Replotting

2008-03-05 Thread Ryan May
Hi, I'm trying to get matplotlib to replot a pcolor image as data in a file is updated. What's the proper way to do this? The best approach I could come up with is as follows: import threading, time import numpy as N import matplotlib.pyplot as P def update_plot(*args): ax = args[0]

Re: [Matplotlib-users] how load data to Image from String?

2008-03-05 Thread Christopher Barker
sa6113 wrote: > I need QImage in order to display or use in GUI , for exa. in QFrame or > QLabel , I can convert the Image to QImage , but the problem is that I > haven't access to Image object without saving that , also I can convert the > figure (Plot) to string or buffer but I don't know what sh

Re: [Matplotlib-users] Subplots from existing figures

2008-03-05 Thread Christiaan Putter
Hi guys, I've been wanting to do something similar as well. Create a figure from other figures. The function accepts a list of figures, and according to the ratio (rows to columns) creates a bigger figure of appropriate size and 'copies' the axes into the new figure. I calculate the positions a

[Matplotlib-users] Zorder Problem with twinx()

2008-03-05 Thread Wayne E. Harlan
First, I apologize for the long script. It's if anyone wants to see the issue first hand. The problem is that when I use twinx() to plot two different functions on the same axes, the legend from the first part is overwritten by the grid lines of the second part (after the twinx() statement).

Re: [Matplotlib-users] Problem with axvline

2008-03-05 Thread Fabrice Silva
Le mercredi 05 mars 2008 à 15:19 +0100, Lorenzo Isella a écrit : > p.hold(False) [...] > p.plot(x,y,"ko") > p.axvline(30.) > > My problem is that the second figure shows only the vertical line. If > I remove all the lines for the first plot (i.e. the one without > axvline), then the remaining plot

Re: [Matplotlib-users] newbie question about interactive plotting

2008-03-05 Thread David Fox
Thanks, the -n flag to idle did the trick. -Original Message- From: Darren Dale [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 7:13 AM To: matplotlib-users@lists.sourceforge.net Cc: David Fox Subject: Re: [Matplotlib-users] newbie question about interactive plotting On Tuesda

[Matplotlib-users] Problem with axvline

2008-03-05 Thread Lorenzo Isella
Dear All, I am running Debian testing on my box and I installed matplotlib from the standard repositories. >From time to time I experience a problem when plotting several figures. Consider the following code snippet: #! /usr/bin/env python import scipy as s import numpy as n import pylab as p x

Re: [Matplotlib-users] newbie question about interactive plotting

2008-03-05 Thread Darren Dale
On Tuesday 04 March 2008 10:44:13 pm David Fox wrote: > I'm trying to use the pylab interface of matplotlib interactively. I'd > like to enter some commands interactively to generate some data, plot a > graph based on the data, inspect the graph, enter more interactive > python, plot another graph

[Matplotlib-users] a problem when I save figure using toolbar in gtk backend

2008-03-05 Thread ZhangRuirui
hi,list I run the example "embedding_in_gtk2.py" which download from matplotlib website. After I save the figure using the toolbar button,if I click another toolbar button,like 'zoom', but nothing happen.The figure is not changed. One time I change the window size after save figure,then it work f

Re: [Matplotlib-users] newbie question about interactive plotting

2008-03-05 Thread linzhenhua
Hello,David Just a hint.I use ipython and meet the similiar problem as you when I configure the ipython configuration file to use pylab or import pylab from the ipython command line. The problem can be solve for me if I start ipython with the pylab ,that is I use the following c