It's a very good idea, when posting questions to a list like this, to 
ask not only the specific question, but also give the background, so we 
can wee what problem you are trying to solve.

sa6113 wrote:
> I use matplotlib and Backend Agg to draw a plot , I want to show this plot in
> my GUI in specific area (Plot area) ,

This is background we need. However, you've left out a key point: what 
GUI toolkit are you using? There is no such thing as a python "image", 
but each toolkit has it's own implementation, so each needs to be 
treated differently.



  I need to have the image object in
> oder to show it, so I have to convert this plot to string or array or save
> in buffer and then load it to an Image ,

If you are using any of the supported back ends: Tk, QT, wx, GTK, then 
MPL has already solved that problem for you -- see the "embedded_in**" 
examples.

If you are using something else, then take a look at the various 
back-end codes -- one of them is probably similar enough to yous to give 
you inspiration.

And yes, you can get a string or buffer object of RBG data from 
FigureCanvasAgg.

> I want to know , can I accomplish
> this without using PIL ,

You shouldn't need PIL.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[EMAIL PROTECTED]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to