kookma / ogpf

ogpf is Object based interface to GnuPlot from Fortran 2003, 2008 and later
Other
167 stars 47 forks source link

Is there a way to plot 2d heatmap? #11

Closed AtilaSaraiva closed 3 years ago

AtilaSaraiva commented 3 years ago

From what I could understand from the code and README.md, the only way to plot sets of x,y,z points in a 2d raster would be with a contour plot. However, I am not that experience with the software, so I'd like to know if there is a way to do that.

kookma commented 3 years ago

See example 105! It shows a nice surface plot! It also uses contour+surface in one plot! So, ogpf con do that!

AtilaSaraiva commented 3 years ago

Sorry, I didn't express myself correctly, I want to make a x,y,z plot without the contours. Just with the color variation.

kookma commented 3 years ago

Sorry, I didn't express myself correctly, I want to make a x,y,z plot without the contours. Just with the color variation.

No problem, it is a surface plot! A heat map can be plotted using surf(x,y,z) if you need to use special color palette then call surf like surf(x,y,z,palette)