On 3/15/07, Pellegrini Eric <[EMAIL PROTECTED]> wrote: > Hello everybody, > > when using matplotlib, any plot I create is displayed separately from my > Tkinter application. Is there a direct way to embed the plot created by > matplotlib in a widget such as a canvas using something like "create_image" > or something else ? > > Currently, the only thing I managed to do is: > -create my plot with matshow > -save the figure using savefig (png) > -embed the png in a canvas using create_image > > not very smart, isn't it ?
Definitely not ;). It's simple to embed matplotlib in the common toolkits. Download the examples tarball from the matplotlib site and look at the files embedding_in_XXX.py. There are examples for tk, gtk, qt and wx toolkits. > Thank you very much > > best regards > > Eric Pellegrini ~ Antonio ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users