Issue
This Content is from Stack Overflow. Question asked by Zolic
I’m working with 2190 rows of somewhat large data. Using three variables—I’m trying to plot a heatmap. But instead of a heat map, it shows me some meaningless scattered points. Is there a way to increase the effect or power of the little scattered points?
data=pd.read_csv('L0.csv')
X=data.X
Y=data.Y
Z=data.Z
data=data.pivot_table(index="Y",columns="X",values="Z")
data=np.nan_to_num(data)
plt.grid(False)
plt.imshow(data, extent =[0, 15, -5, 3], origin = 'lower', cmap=plt.cm.jet)
plt.show()
but i want to get heatmap like
enter image description here
Solution
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.