This article reprinted from https://www.it610.com/article/1282212275846922240.htm
if you have offended, please contact me
I looked for Matplotlib button for a long time before I found something I could understand. I don’t know if it was too simple, so no one wrote it.
ttonAxe = PLT.axes ([0.94, 0.03, 0.03, 0.03]) u>to set the position of the button.
tton1 = Button(buttonAxe, 'p2',color='khaki', overcolor='yellow') i>ed to create the Button and to set the color and the color of the Button when the mouse is over the Button.
tton1.on_clicked (show2) s>the function triggered after the button is clicked.
in addition to write after click the button to trigger functions should pay attention to write the event in the brackets, such as def show2 (event) :
buttonaxe = plt.axes([0.94, 0.03, 0.03, 0.03]) button1 = Button(buttonaxe, 'p2',color='khaki', hovercolor='yellow') button1.on_clicked(show2)
- Summary of IOS storyboard unwind segues
- JQ adds a click event to the option of select
- [Windows 7 – how to delete files protected by trustedinstaller win7 force deletion of files]
- plt.plot and plt.imshow difference
- How to Fix VMware Taking ownership of this virtual machine failed
- VUEJS Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of
- SQL Msg 18054, Level 16, State 1
- Python – writing visual interface (Python + pycharm + pyqt)
- The image operation of MATLAB — every detail operation of colorbar
- Some problems in OpenGL
- CSS remove the blue box after button click
- How to install IDM Extension in Chromium-based Microsoft Edge (Canary/Dev)
- The solution to the flash of. Bat file
- Install apache2.4 on windows to solve the problem of the requested operation has failed
- Was import certificate — error prompt: java.security.cert .CertPathValidatorException: Certificate chaining error
- opencv cvtColor dtype issue(error: (-215) )
- NVIDIA aegis handheld machine root tutorial
- [VTK] cmake compiling VTK
- Camtasia error: video codec open failed
- Indenta in Python tionError:unindent does Error