简体   繁体   中英

Plotting heat-map in python with multiple data sets

I have a list FFT data which I want to plot in a single heat map. Each data set has its own X and Y. Usually I make use of Seaborn and Panda dataframe to plot the heatmap as the Frequency will be common for all the sets, but now the frequency column is unique for each data set. How can we plot a heatmap from this kind of data?

that is , I have a number of data sets as

X1,Y1

X2,Y2

X3,Y3

...

...

Xn,Yn

each X is unique and I want to plot these N graphs as a heatmap.

The problem was caused due to the fact that the Data was of non-uniform grid, now I created a common domain (x-axis value) for all the functions and then interpolated all the Data set to the new X-value.

I used the numpy.interpol() function to achieve this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM