[matplotlib-devel] open bug: losing focus after saving in interactive mode

2006-07-09 Thread Mark Bakker
John was asking whether there was something left to be fixed befor 0.88.In 0.87.3, there is still a bug left that has been reported several times I think.In interactive mode on TkAgg, after solving by clicking on the 'save' button in toolbar2,
mpl loses its knowledge of the figure. Any plotting statement given after thatcreates a new figure, rather than add to the existing one. I wish I knew how to fix this.I am (still, but not much longer) running Python 
2.3, but I think Fernando reportedthe bug in Python 2.4 as well.Thanks,Mark

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] open bug: losing focus after saving in interactive mode

2006-07-09 Thread Fernando Perez
On 7/9/06, Mark Bakker <[EMAIL PROTECTED]> wrote:
> John was asking whether there was something left to be fixed befor 0.88.
> In 0.87.3, there is still a bug left that has been reported several times I
> think.
>
> In interactive mode on TkAgg, after solving by clicking on the 'save' button
> in toolbar2,
> mpl loses its knowledge of the figure. Any plotting statement given after
> that
> creates a new figure, rather than add to the existing one. I wish I knew how
> to fix this.
> I am (still, but not much longer) running Python 2.3, but I think Fernando
> reported
> the bug in Python 2.4 as well.

Confirmed: bug is still there, with current SVN mpl under python2.4.

Cheers,

f


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] open bug: losing focus after saving in interactive mode

2006-07-09 Thread John Hunter
> "Mark" == Mark Bakker <[EMAIL PROTECTED]> writes:

Mark> John was asking whether there was something left to be fixed
Mark> befor 0.88.  In 0.87.3, there is still a bug left that has
Mark> been reported several times I think.

Interesting.  the tk ask file dialog seems to be triggering a destgroy
event on the main window, which removes it from mpl figure
management.  Here is a minimal Tk script which exposes the problem.
When you press the mouse button, you get a file dialog that when you
close it triggers a destroy event and calls the callback function

I don't know if this is a tk bug or if we are misusing the Tk code.
Tk experts?


I'll post on python-list.

JDH

import Tkinter as Tk
from tkFileDialog import asksaveasfilename

def button(event):
fname = asksaveasfilename(
title='Save the figure'
)




window = Tk.Tk()
frame = Tk.Frame(window, width=500,height=500)
frame.bind('', button)
frame.pack()


def callback(*args):
print 'called callback'
window.bind("", callback)

window.mainloop()




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] open bug: losing focus after saving in interactive mode

2006-07-09 Thread Mark Bakker
The weird thing is that this used to work fine in the past.At least, I am pretty sure it did.Then again, I am watching the Worlcup final at this time. So a significant part of my brain is doing something else,
MarkOn 7/9/06, John Hunter <[EMAIL PROTECTED]> wrote:
> "Mark" == Mark Bakker <[EMAIL PROTECTED]> writes:Mark> John was asking whether there was something left to be fixedMark> befor 
0.88.  In 0.87.3, there is still a bug left that hasMark> been reported several times I think.Interesting.  the tk ask file dialog seems to be triggering a destgroyevent on the main window, which removes it from mpl figure
management.  Here is a minimal Tk script which exposes the problem.When you press the mouse button, you get a file dialog that when youclose it triggers a destroy event and calls the callback functionI don't know if this is a tk bug or if we are misusing the Tk code.
Tk experts?I'll post on python-list.JDHimport Tkinter as Tkfrom tkFileDialog import asksaveasfilenamedef button(event):fname = asksaveasfilename(title='Save the figure'
)window = Tk.Tk()frame = Tk.Frame(window, width=500,height=500)frame.bind('', button)frame.pack()def callback(*args):print 'called callback'
window.bind("", callback)window.mainloop()

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] backends

2006-07-09 Thread Robert Hetland
On Jul 7, 2006, at 5:16 PM, John Hunter wrote:PDF is certainly an important document format, but it doesn't seem to be widely used for figures. I only use PDF figures.  They are useful both in pdflatex (how I write), and play nice with all of the other mac utilities, in particular Keynote (how I present).  They are generally small, and good looking at any size because of the vector graphics.When converting MPL figures to pdf I usually just export to eps, then convert using ghostscript.  In fact, if you open an eps file, OS X will do the conversion automagically, and open your new pdf in Preview.  For publication quality (with annotations, etc), I export to eps, edit in Illustrator, and eventually export to pdf.I'm not suggesting immediate development for a PDF backend (although if it came automatically with kiva, I would use it), I think eps+ghostscript is good enough for now.  However, general pdf support is an important issue for me.-Rob
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] open bug: losing focus after saving in interactive mode

2006-07-09 Thread John Hunter
> "Mark" == Mark Bakker <[EMAIL PROTECTED]> writes:

Mark> The weird thing is that this used to work fine in the past.
Mark> At least, I am pretty sure it did.  Then again, I am
Mark> watching the Worlcup final at this time.  So a significant
Mark> part of my brain is doing something else, Mark

At some point, we upgraded our tk filesave dialog to use the more
modern one.  We could always revert to the old one, which would
likely fix this but let's give it a day and see if we can't have the
best of both worlds.  Hopefully, the effbot will pick up on my c.l.py
post...

JDH


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] backends

2006-07-09 Thread John Hunter
> "Robert" == Robert Hetland <[EMAIL PROTECTED]> writes:

Robert> I'm not suggesting immediate development for a PDF backend
Robert> (although if it came automatically with kiva, I would use
Robert> it), I think eps +ghostscript is good enough for now.

As you may know, we have a prototype of a PDF backend, though it is
missing many features.

JDH


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel