[matplotlib-devel] Adding custom interactive backend

2007-05-02 Thread Urvashi R.V.
Hi,

I have a modified version of the TkAgg backend, with a few custom
features, and would like to be able to get pylab/matplotlib to use it,
but without having to put the backend code into the matplotlib code
tree.

Is there a way to make matplotlib find and use a "backend_.py"
which does not reside in matplotlib/backends/   , and without filling
in entries in matplotlib/__init__.py and
matplotlib/backends/__init__.py  ?

Thank you very much.
Regards,
 Urvashi

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] SaveFig bug in TkAgg backend

2007-05-10 Thread Urvashi R.V.

Hi,

When the "save" button is used on the matplotlib tkagg toolbar, it
uses the "Tk"  "asksavefilename" object from the "tkFileDialog" class,
to pop up a little window that allows you to select the name and type
of file to save.This function internally calls "figure.destroy()".
and the currently active figure gets destroyed (but it is still visible
and memory is not freed). The next plot then creates a new figure
window with the same figure._num as the previous.

see...
backend_tkagg.py : line 621
-> class NavigationToolbar2TkAgg ::   def save_figure(...)
(callback for the toolbar.bsave button)

The "asksavefilename" function call, triggers Gcf.destroy().  This can
be seen by placing a print statement in
_pylab_helpers.py : line 16
-> class Gcf :: def destroy(num)

A script to trigger this is attached
Does anyone else see this, and does anyone have a way to fix this ?

Thank you very much !
Regards,
Urvashi Rau


savetest.py
Description: application/python
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel