Search code examples
gnuplot

Trying to plot contours on Mac using the same script I use on windows on gnuplot


I have an issue with gnuplot on Mac. On windows everything seems fine I can easily draw contours on a "heat map". But on my Mac using the same script I can plot the map but not the contours on top of it.

https://i.sstatic.net/70j58.jpg here is the two images. One with the contours is on Windows, other one is on Mac.

https://justpaste.it/6ws4h and here is the script.

I tried grid3d but they seem like not nearly accurate as the ones I have plotted on windows.


Solution

  • Well! I will answer my own question.

    set pm3d map 
    set contour surface 
    set cntrparam ... 
    sp "DATA" u 1:2:3  with pm3d lw 2,"" u 1:2:3 with lines nosurf
    

    Solved my problem.!