How to show spectrogram in grafana?


Please tell me how to visualize spectrogram with grafana. that data is taken from InfluxDB.
I’ve seen in Heatmap doco that bucket value is a Z-axis value:

I wish that the input of the grafana will be vector from matplotlib.pyplot.specgram, hopefully can be inserted to InfluxDB:

The matplotlib.pyplot.specgram returns this array:

spectrum2D array
Columns are the periodograms of successive segments.

freqs1-D array
The frequencies corresponding to the rows in spectrum.

t1-D array
The times corresponding to midpoints of segments (i.e., the columns in spectrum).

Thanks a alot.