Menu

#2867 hidden3d not working as expected

None
open
nobody
None
2 days ago
3 days ago
Anonymous
No

Using the following commands the attached screenshot is generated:
gnuplot> set multiplot layout 1,2
multiplot> sp 'theta_1/grid2/splot.111' w l ls 1
multiplot> set hidden3d
multiplot> sp 'theta_1/grid2/splot.111' w l ls 1
multiplot> unset multiplot

The problem is that the image on the right has lost color, and does not have different colors for the top and bottom parts of the surface. Played with "offset <n>" options with no luck. Interestingly, the image on the right takes around 10 times longer to generate. Have tested this on three different Linux environments using gnuplot 5.2, 5.4 and 6.0, all of which yield the same output. I still have the output from gnuplot 4.6 which worked perfectly.</n>

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2 days ago

    Please attach the data file also. I is hard to reproduce a data plot without the data.

     
  • Igor Bray

    Igor Bray - 2 days ago

    Problem fixed. It seems with "set hidden3d" it is important to add "u 1:2:3" to the splot command (at least for my input file):
    gnuplot> set multiplot layout 1,2
    multiplot> sp 'theta_1/grid2/splot.111' w l ls 1
    multiplot> set hidden3d
    multiplot> sp 'theta_1/grid2/splot.111' u 1:2:3 w l ls 1

     

    Last edit: Igor Bray 2 days ago
  • Igor Bray

    Igor Bray - 2 days ago
    • Group: -->
    • Priority: -->
     
  • Igor Bray

    Igor Bray - 2 days ago
     

    Last edit: Igor Bray 2 days ago

Log in to post a comment.

MongoDB Logo MongoDB