¡@

Home 

python Programming Glossary: fig.canvas.mpl_connect

Matplotlib basemap: Popup box

http://stackoverflow.com/questions/11537374/matplotlib-basemap-popup-box

if visibility_changed plt.draw on_move_id fig.canvas.mpl_connect 'motion_notify_event' on_move plt.show Hopefully everything..

Text box in matplotlib?

http://stackoverflow.com/questions/4018860/text-box-in-matplotlib

boundaries ha 'center' # Now make the text auto wrap... fig.canvas.mpl_connect 'draw_event' on_draw plt.show def on_draw event Auto wraps all..

Is there a matplotlib equivalent of MATLAB's datacursormode?

http://stackoverflow.com/questions/4652439/is-there-a-matplotlib-equivalent-of-matlabs-datacursormode

fig plt.figure line plt.plot range 10 'ro ' fig.canvas.mpl_connect 'pick_event' DataCursor plt.gca line.set_picker 5 # Tolerance.. line.set_picker ... b there's no need to manually call fig.canvas.mpl_connect and c this version handles multiple axes and multiple figures... artist.set_picker tolerance for fig in self.figures fig.canvas.mpl_connect 'pick_event' self def annotate self ax Draws and hides the annotation..

matplotlib show() doesn't work twice

http://stackoverflow.com/questions/5524858/matplotlib-show-doesnt-work-twice

figure ax figi.add_subplot 111 ax.plot 1 2 3 4 figi.show fig.canvas.mpl_connect 'pick_event' onpick show On the contrary if I use the same code..

Color values in imshow for matplotlib?

http://stackoverflow.com/questions/5836560/color-values-in-imshow-for-matplotlib

plt.gcf ax plt.gca class EventHandler def __init__ self fig.canvas.mpl_connect 'button_press_event' self.onpress def onpress self event if..

Possible to make labels appear when hovering over a point in matplotlib?

http://stackoverflow.com/questions/7908636/possible-to-make-labels-appear-when-hovering-over-a-point-in-matplotlib

x y 100 s c picker True #fig.savefig 'pscoll.eps' fig.canvas.mpl_connect 'pick_event' onpick3 show This recipe draws an annotation on..

Matplotlib 3D scatter color lost after redraw

http://stackoverflow.com/questions/8971309/matplotlib-3d-scatter-color-lost-after-redraw

event global scatCollection scatCollection.changed fig.canvas.mpl_connect 'draw_event' forceUpdate #plt.show plt.savefig 'image1.png'..