But it seems like there should be a better solution, so please let me know if you think of one. To see what's wrong with simply using the "front" option as a fix, replace the first line with: set arrow 1 from 0,0,0 to 0,0,1 lw 2 frontĮdit: I realized after posting that this can be done with multiplot. I'm using a fine mesh so that the effect is clearly visible. Is there a way to do that (i.e., manually set the order in which curves and other objects are drawn)? If not, does anyone have a good workaround? (The only one I can think of is to draw the arrow manually using lines, but I'd like to avoid that if possible.) The obvious solution is to split the function drawing the cone into two halves and make the arrow in front of one curve and behind the other. But, viewed in perspective, the arrow should be in front of the back half of the cone, and behind the front half of the cone. Even more important is the fact that nothing limits you to use graphics only as histogram bars. You may certainly use that Gnuplot code as a template to fill each time with different origin and scaling values from a script. set arrow from 31,40 to 495,40 nohead front ls 1 set for ii 0:11. If I add the "front" option to the arrow, it is displayed in front of the entire cone. The text is than set by labels to the axis. By default, the arrow is displayed behind the entire cone. Suppose that we set a vertical line with set arrow from 1,graph 0 to 1,graph 1 nohead lt 0 Now, if I want this to be in the key, I can just plot a line with lt 0 but specify the y-value as 1/0. You can take advantage of this to plot what you want. #Gnuplot set arrow how toThe only problem is that I can't figure out how to fit the arrow correctly into the 3D perspective of the picture. 3 Gnuplot will ignore anything with an invalid value (1/0 for instance). I'm using gnuplot to draw a cone with an arrow pointing upwards through the cone's axis of symmetry.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |