3

is it possible to create buttons in matplotlib, so that I can do things as in GUI interface? if it is possible, how to do it?

oz123
  • 27,559
  • 27
  • 125
  • 187
user1653363
  • 375
  • 1
  • 5
  • 7

2 Answers2

3

check all the examples here:

http://matplotlib.org/examples/user_interfaces/

or this for example: Interactive matplotlib plot with two sliders

Community
  • 1
  • 1
oz123
  • 27,559
  • 27
  • 125
  • 187
0

An alternative way to create interactive graphics with matplotlib is with the new Quibbler package.

This tool automatically makes any matplotlib graphics interactive, as well as making widgets like Sliders, Buttons etc interactive without a need to write callback functions.

See some examples in the Quibbler docs.

For transparency: I am one of the developers of Quibbler.

royk
  • 85
  • 7