Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MatplotLib Sliders
#1
Wondered if anyone can help. The following code creates a 64x64 heatmap.
I'd like to add two horizontal sliders A and B each scaled from -90 to +90
Next to each slider I'd like to show the value selected on each slider in a label.
I've tried several times but can't seem to get it to work. Thanks

import matplotlib.pyplot as plt
import numpy as np

a = np.random.random((64, 64))

plt.figure('My First GUI')

plt.imshow(a, cmap='gray', interpolation='nearest')
plt.show()
Reply


Messages In This Thread
MatplotLib Sliders - by punksnotdead - May-16-2019, 04:13 PM
RE: MatplotLib Sliders - by DreamingInsanity - May-16-2019, 04:52 PM
RE: MatplotLib Sliders - by punksnotdead - May-17-2019, 09:02 AM
RE: MatplotLib Sliders - by DreamingInsanity - May-17-2019, 05:07 PM
RE: MatplotLib Sliders - by punksnotdead - May-18-2019, 08:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,162 Mar-11-2021, 10:52 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020