May-16-2019, 04:13 PM
(This post was last modified: May-16-2019, 04:13 PM by punksnotdead.)
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
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()