On 9/19/07, Yo mismo Hotmail <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> I'm actually working with Matplotlib/Pylab Interface for making 2D plot. I
> need to specify screen location where the frame will appear and I don't know
> how. Supose a simple example like:
>
> from pylab import *
>
> t = arange(0.0,10,0.01)
> s = 20*sin(2*pi*t)
> c = 20*cos(2*pi*t)
>
> figure(1)
> plot(s)
> figure(2)
> plot(c)
> show()
>
> If I do it in this way, one frame is hidded behind the other one. How can I
> modify frames attributes in order to change their position on the screen?

pylab doesn't explicitly support this -- I have encouraged backend
maintainers to attach the window instance to the figure manager
instance, but I am not sure of all backends support this (GTK* and Tk
do...).  The window instance will be a GUI specific widget.  Eg in the
GTK* backends, a gtk.Window

fig = figure()
fig.canvas.manager.window.move(100,400)

and other methods at

http://www.pygtk.org/pygtk2reference/class-gtkwindow.html#method-gtkwindow--set-position

If you need a lot of control, you are advised to embed mpl into a GUI
app, eg see examples/embedding*.py in the mpl examples dir

http://matplotlib.sourceforge.net/examples/http://matplotlib.sourceforge.net/examples/


JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to