I have a dictionary of lists:
dictA = {"A": [1,2,3], "B": [4,5,6], "C": [7,8,9]}
I want to display the data as a heatmap using the Matplotlib imshow. A, B and C run vertically (y), and the values are the corresponding cell value running left to right. This would result in a 3x3 plot.
Ideally, I would like to keep this native to core Python and avoid verbose data-type wrangling via packages like NumPy, but if it can't be helped, it can't be helped - I just want it to work.
The basics would be:
import matplotlib.pyplot as plt
dictA = {"A": [1,2,3], "B": [4,5,6], "C": [7,8,9]}
SOMETHING = #wrangling my dictionary to be "array-like"
plt.imshow(SOMETHING)
plt.show()