def show(): """ Show all the figures and enter the gtk mainloop This should be the last line of your script """ for manager in Gcf.get_all_fig_managers(): manager.figure.realize()
def show(): """ Show all the figures and enter the gtk mainloop This should be the last line of your script """ for manager in Gcf.get_all_fig_managers(): manager.figure.realize()
def show(): """ This is usually the last line of a matlab script and tells the backend that it is time to draw. In interactive mode, this may be a do nothing func. See the GTK backend for an example of how to handle interactive versus batch mode """ for manager in Gcf.get_all_fig_managers(): manager.canvas.realize()
def show(): """ This is usually the last line of a matlab script and tells the backend that it is time to draw. In interactive mode, this may be a do nothing func. See the GTK backend for an example of how to handle interactive versus batch mode """ for manager in Gcf.get_all_fig_managers(): manager.canvas.realize()
def show_xvfb(): """ Print the pending figures only then quit, no screen draw """ for manager in Gcf.get_all_fig_managers(): manager.canvas.set_do_plot(False) manager.window.show() gtk.idle_add(_quit_after_print_xvfb) if gtk.pygtk_version > (2, 3, 90): gtk.main() else: gtk.mainloop()
def show(mainloop=True): """ Show all the figures and enter the gtk mainloop This should be the last line of your script """ for manager in Gcf.get_all_fig_managers(): manager.window.show() if show._needmain and mainloop: if gtk.pygtk_version > (2, 3, 90): gtk.main() else: gtk.mainloop() show._needmain = False
def show(mainloop=False): """ Show all the figures and enter the fltk mainloop This should be the last line of your script """ for manager in Gcf.get_all_fig_managers(): manager.show() #mainloop, if an fltk program exist no need to call that #threaded (and interractive) version if show._needmain and mainloop: Fltk.Fl.run() show._needmain = False else: thread.start_new_thread(Fltk_run_interactive,()) show._needmain = False
def show(mainloop=False): """ Show all the figures and enter the fltk mainloop This should be the last line of your script """ for manager in Gcf.get_all_fig_managers(): manager.show() #mainloop, if an fltk program exist no need to call that #threaded (and interractive) version if show._needmain and mainloop: Fltk.Fl.run() show._needmain = False else: thread.start_new_thread(Fltk_run_interactive,()) show._needmain = False
def _quit_after_print_xvfb(*args): for manager in Gcf.get_all_fig_managers(): if len(manager.canvas._printQued): break else: gtk.main_quit()