From: Eric F. <ef...@ha...> - 2014-05-23 07:07:49
|
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 |