I have the following data saved in data.dat, where the 3 columns are X, Y and Z respectively. X and Y are positions (angular offset from the center of a cube in arc seconds) and Z is the density in that position. How can I create a colorbar for Z in Python?
This is my data. First 2 values are positions
(27,0,8.26E+14),
(27,-18,8.57E+14),
(27,-18,8.57E+14),
(18,0,1.25E+15),
(9,0,1.13E+15),
(9,-9,9.53E+14),
(27,-18,8.38E+14),
(18,-18,7.96E+14),
(9,-18,6.71E+14),
(27,-18,5.20E+14)