On 2014/05/22 7:21 PM, Rachana Katkam wrote:
> Hi,
>   I am facing little trouble in understanding the pyplot concept.

Pyplot is designed mainly for interactive work, and for situations where 
no explicit calls to a gui library are needed.  When you do need to work 
directly with a gui library, don't use pyplot; let your explicit gui 
calls control the windows and the mainloop, and use the matplotlib 
object-oriented interface for the actual plotting--in a window supplied 
by the gui.

In the matplotlib/examples directory, check out 
user_interfaces/embedding_in_gtk2.py for an example of using mpl in a 
gui app; note that it does not import pyplot.  It's a very minimal 
example, but it does show how one can put a plot in a figure, which is 
in a canvas, which is in a window.  Everything beyond the figure level 
is via the gtk gui directly.

Eric


>
> The following link describes my problem, please have a look at it:
> http://stackoverflow.com/q/23804957/3218127
>
> Regards,
> Rachana K


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to