Plotting a surface with a hole

  • gugamar

    gugamar - 2005-08-27

    Hello guys,

    I have been using gnuplot to try to plot the deformation map of a plate with a hole. Here is a short version of my script.

    set dgrid3d 150,150,20
    set pm3d
    set view map
    splot 'data.dat' using 1:2:3 with pm3d

    The plot comes out ok, except the hole gets filled out. Is there a way to plot to stop dgrid3d from filling the hole?

    • Hans-Bernhard Broeker

      The only way to stop dgrid3d from doing its job is not to use it.  There are other, generally better ways of turning your input data into a gridded surface dataset usable by gnuplot --- dgrid3d is only meant as a fall-back method for cases where that was forgotten to be done.

    • gugamar

      gugamar - 2005-08-28

      What are the requirements for gnuplot to recognize data as gridded data?  Do you have a link for an example or something?

      • Hans-Bernhard Broeker

        There's documentation in 'help splot datafile', but you may need to read 'help glossary' in parallel to understand it.

        As to examples, there are plenty among the demos that come with the program.


Log in to post a comment.