Navin
Navin

Reputation: 41

How to add a button to matplotlib.pylab.imshow() dialog?

I want to do additional operations on the image displayed by matplotlib.pyplot.imshow() method.

For Example: I want an extra button "Display ROI" where it displays the ROI of the co-ordinates I have selected in the image in my preferred format.

Is this possible?

Upvotes: 4

Views: 3718

Answers (1)

Stephen Terry
Stephen Terry

Reputation: 6279

There is a widgets module in matplotlib that can give you that functionality. Check out the widgets examples page.

Upvotes: 3

Related Questions