How to plot, with Python, a 2D matrix A[i,j]
like this:
i
is the x-axisj
is the y-axisA[i,j]
is a value between 0 and 100 that has to be drawn by a colour (ex: 0=blue, 100=red)
Is there a Python function for that?
(NB: I don't want a function that does the spectrogram for me, such as specgram
, because I want to compute the FFT of the signal myself; thus I only need a function that plots a matrix with colors)