I am porting some scripts from MATLAB to C and using GNUPLOT for plotting, in MATLAB I use the following command to plot:
contourf(nU, 200,'linecolor','non');
nU contains the matrix to plot, I already have the C code that gets the data and puts them in the same matrix format, from GNUPLOT documentation, splot uses the following format, so I also have the code to pass the data to a file 'data.txt' with the following format:
# x, y, z
0.000000 0.000000 0.000000
0.094248 0.000000 0.000000
0.188496 0.000000 0.000000
0.282743 0.000000 0.000000
I tried
splot 'data.txt'
and it seems like its plotting the data correctly, but is plotting like so:
However I need a 2d filled contour plot, this is the output from MATLAB:
Once plotted, what commands can I use to modify the GNUPLOT output?