Bottom Page

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()
Quote

Top Page

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 : linewidth parameters Zopost 0 96 Aug-16-2019, 07:07 PM
Last Post: Zopost
  hatching not working properly with matplotlib Staph 3 99 Jul-28-2019, 07:17 AM
Last Post: ThomasL
  HX711&matplotlib problems olego 0 88 Jul-12-2019, 12:22 PM
Last Post: olego
  Matplotlib problem ift38375 0 110 Jul-02-2019, 02:55 PM
Last Post: ift38375
  Matplotlib contour no data coordinates b4rtt 1 211 Jun-18-2019, 09:36 AM
Last Post: b4rtt
  Matplotlib ImportError robertinoc 4 317 Jun-14-2019, 09:11 AM
Last Post: snippsat
  Matplotlib animation problem Potatoez 1 342 May-21-2019, 03:58 PM
Last Post: Potatoez
  Animation using matplotlib query JohnDoe 0 156 May-09-2019, 08:07 PM
Last Post: JohnDoe
  How do i get matplotlib event handling to work? jenya56 3 455 Apr-24-2019, 06:53 PM
Last Post: jenya56
  Matplotlib 3d voxels animation jasiekkm 0 201 Apr-07-2019, 07:44 AM
Last Post: jasiekkm

Forum Jump:


Users browsing this thread: 1 Guest(s)