¡@

Home 

python Programming Glossary: self.canvas

wxPython: Making something expand

http://stackoverflow.com/questions/1034399/wxpython-making-something-expand

init of a panel sizer wx.BoxSizer wx.VERTICAL sizer.Add self.canvas 1 wx.EXPAND self.SetSizer sizer share improve this answer..

Embedding a matplotlib figure inside a WxPython panel

http://stackoverflow.com/questions/10737459/embedding-a-matplotlib-figure-inside-a-wxpython-panel

self.figure Figure self.axes self.figure.add_subplot 111 self.canvas FigureCanvas self 1 self.figure self.sizer wx.BoxSizer wx.VERTICAL.. self.sizer wx.BoxSizer wx.VERTICAL self.sizer.Add self.canvas 1 wx.LEFT wx.TOP wx.GROW self.SetSizer self.sizer self.Fit def..

Mutli-threading python with Tkinter

http://stackoverflow.com/questions/14379106/mutli-threading-python-with-tkinter

width 400 height 300 self.width self.height width height self.canvas Tkinter.Canvas width width height height bg 'black' self.canvas.pack.. Tkinter.Canvas width width height height bg 'black' self.canvas.pack fill 'none' expand False self._oid self.canvas.after 10.. self.canvas.pack fill 'none' expand False self._oid self.canvas.after 10 self.move self.queue queue self.canvas.after 50 self.check_queue..

time.sleep() required to keep QThread responsive?

http://stackoverflow.com/questions/14665636/time-sleep-required-to-keep-qthread-responsive

self.fig.add_subplot 111 self.axes.axis 0 512 0 120 self.canvas FigureCanvas self.fig self.canvas.setParent self.main_frame.. 0 512 0 120 self.canvas FigureCanvas self.fig self.canvas.setParent self.main_frame self.canvas.updateGeometry self.canvas.draw.. self.fig self.canvas.setParent self.main_frame self.canvas.updateGeometry self.canvas.draw self.background None self.lE_line..

Adding a scrollbar to a grid of widgets in Tkinter

http://stackoverflow.com/questions/3085696/adding-a-scrollbar-to-a-grid-of-widgets-in-tkinter

def __init__ self root tk.Frame.__init__ self root self.canvas tk.Canvas root borderwidth 0 background #ffffff self.frame tk.Frame.. root borderwidth 0 background #ffffff self.frame tk.Frame self.canvas background #ffffff self.vsb tk.Scrollbar root orient vertical.. #ffffff self.vsb tk.Scrollbar root orient vertical command self.canvas.yview self.canvas.configure yscrollcommand self.vsb.set self.vsb.pack..

How can I speed up an animation?

http://stackoverflow.com/questions/5003094/how-can-i-speed-up-an-animation

has a big influence on the speed self.fig Figure 3 3 75 self.canvas FigureCanvasWxAgg self 1 self.fig EVT_TIMER self TIMER_ID self.onTimer.. self.datagen.next self.axes.imshow self.datagen.next .T self.canvas.draw When I resize the window during the animation it immediately..

How to update a plot with python and Matplotlib

http://stackoverflow.com/questions/5160558/how-to-update-a-plot-with-python-and-matplotlib

kwargs self.figure mpl.figure.Figure dpi dpi figsize 2 2 self.canvas Canvas self 1 self.figure sizer wx.BoxSizer wx.VERTICAL sizer.Add.. self 1 self.figure sizer wx.BoxSizer wx.VERTICAL sizer.Add self.canvas 1 wx.EXPAND self.SetSizer sizer class JBC wx.Frame def __init__.. kwargs self.figure mpl.figure.Figure dpi dpi figsize 2 2 self.canvas Canvas self 1 self.figure sizer wx.BoxSizer wx.VERTICAL sizer.Add..

board-drawing code to move an oval

http://stackoverflow.com/questions/6740855/board-drawing-code-to-move-an-oval

kwargs tk.Tk.__init__ self args kwargs # create a canvas self.canvas tk.Canvas width 400 height 400 self.canvas.pack fill both expand.. create a canvas self.canvas tk.Canvas width 400 height 400 self.canvas.pack fill both expand True # this data is used to keep track.. and releasing over # any object with the token tag self.canvas.tag_bind token ButtonPress 1 self.OnTokenButtonPress self.canvas.tag_bind..

matplotlib: limits when using plot and imshow in same axes

http://stackoverflow.com/questions/9120749/matplotlib-limits-when-using-plot-and-imshow-in-same-axes

follows self.dpi 100 self.fig Figure 6.0 6.0 dpi self.dpi self.canvas FigureCanvas self.fig self.canvas.setMinimumSize 800 400 self.cax.. 6.0 6.0 dpi self.dpi self.canvas FigureCanvas self.fig self.canvas.setMinimumSize 800 400 self.cax None self.axes self.fig.add_subplot.. 111 self.axes.imshow channel1 interpolation nearest self.canvas.draw self.axes.plot dat 0 dat 1 b I've tried setting the limits..

Interactive plot based on Tkinter and matplotlib

http://stackoverflow.com/questions/9997869/interactive-plot-based-on-tkinter-and-matplotlib

command self.increase self.button_right.pack side left self.canvas FigureCanvasTkAgg fig master self self.canvas.show def decrease.. side left self.canvas FigureCanvasTkAgg fig master self self.canvas.show def decrease self print Decrease def increase self print.. Figure ax fig.add_subplot 111 self.line ax.plot range 10 self.canvas FigureCanvasTkAgg fig master master self.canvas.show self.canvas.get_tk_widget..