I have three column file,5 million lines. It is like
x,y,z
3,4,6.7
9,4,7.8
X and y are pixel numbers and z are corresponding values at (x,y)
How to plot a heat map?
A 2D plot is a compromise for my original thought.
You can check my original post
How to use griddata from scipy.interpolate
I tried the way below but it is just a scatter point plot.
import numpy as np
import pylab as pl
x,y,z =np.loadtxt('3columns.csv',delimiter=',',usecols=(0,1,2),unpack=True)
pl.scatter(x, y, c=z)
pl.show()