2013/1/16 Kelson Zawack <k...@cornell.edu>: > I want to create a matplotlib figure as part of a program I am writing > and therefore would like to create the figure in a fully object oriented > way, ie not in the pyplot state-full way. I understand how to work with > a figure object to create axes objects and then fill the axes objects > with primitive artists but I can't figure out what type of object to put > the figure object in to get it displayed. From digging around in the > source it looks like the show() method comes from the backend, but when > I looked in 'matplotlib/backends/backend_agg' I saw no such object. > What am I missing? I guess I could put the figure in a Qt window, but I > like the functionality provided by the default matplotlib window. > > Thanks for the help >
Hi, if you need an embedded figure in some gui app (supported with matplotlib backends), you may check some demos on this topic: http://matplotlib.org/examples/user_interfaces/index.html embedding_in_ ... (gtk, tk, qt, wx) You can also reuse the gui elements such as toolbar etc. I have no experience with qt, but apparently, there is an example for this: http://matplotlib.org/examples/user_interfaces/embedding_in_qt4_wtoolbar.html Or is it some more specific problem, you are encountering? hth, vbr ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users