Menu

Problem with linespoints style in 3D plotting

Mohammad
2018-02-22
2018-02-23
  • Mohammad

    Mohammad - 2018-02-22

    Sample code

    $xyz << EOD
    # X   Y    Z
    0   0    0
    0   1    1
    0   2    4
    0   3    9
    0   4   16
    0   5   25
    
    1   0    1
    1   1    2
    1   2    5
    1   3   10
    1   4   17
    1   5   26
    
    2   0    4
    2   1    5
    2   2    8
    2   3   13
    2   4   20
    2   5   29
    
    3   0    9
    3   1   10
    3   2   13
    3   3   18
    3   4   25
    3   5   34
    EOD
    
    #
    # create the contour lines
    set contour base
    set cntrparam level incremental -3, 0.5, 3
    unset surface
    unset key
    
    set style data linespoints
    
    set table $xyz_contour
    splot $xyz
    unset table
    plot $xyz_contour 
    

    Problem
    In the above code if you remove the line

    set style data linespoints
    

    The gnuplot works but with the above line the following error raised and an empty graph is shown

    Error:

    Tabular output of this 3D plot style not implemented
    

    Is there any conflict with these settings? If you even use style lines, gnuplot still works!

     

    Last edit: Mohammad 2018-02-22
    • Ethan Merritt

      Ethan Merritt - 2018-02-22

      The error message is correct. Gnuplot's tabulation mode ("set table")
      does not handle all possible
      gnuplot plot styles. In particular it does not handle "with linespoints"
      for 3D plots.

      On Thu, Feb 22, 2018 at 3:13 AM, Mohammad atronoush@users.sourceforge.net
      wrote:

      Sample code

      ~~~
      $xyz << EOD

      X Y Z

      0 0 0
      0 1 1
      0 2 4
      0 3 9
      0 4 16
      0 5 25

      1 0 1
      1 1 2
      1 2 5
      1 3 10
      1 4 17
      1 5 26

      2 0 4
      2 1 5
      2 2 8
      2 3 13
      2 4 20
      2 5 29

      3 0 9
      3 1 10
      3 2 13
      3 3 18
      3 4 25
      3 5 34
      EOD

      create the contour lines

      set contour base
      set cntrparam level incremental -3, 0.5, 3
      unset surface
      unset key

      set style data linespoints

      set table $xyz_contour
      splot $xyz
      unset table
      plot $xyz_contour

      ~~~

      Problem
      In the above code if you remove the line
      ~~~
      set style data linespoints
      ~~~

      The gnuplot works but with the above line the following error raised and
      an empty graph is shown
      Error:

      Tabular output of this 3D plot style not implemented

      Is there any conflict with these setting? If you even use style lines,
      gnuplot still works!


      Problem with linespoints style in 3D plotting


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/gnuplot/discussion/5924/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       
  • Mohammad

    Mohammad - 2018-02-23

    Thnak you Ethane!

    Isuue closed!
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.