Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Gnuplot - 3d points

  1. Jul 20, 2012 #1
    Hello all,

    I am having an issue with the splot command in gnuplot.

    The format of the data I am trying to plot is shown below:
    Code (Text):

    3.09411   71.75663   -2.17624
    3.09238   67.64099   -1.94456
    3.10106   73.70542   -2.85122
    3.09494   75.71568   -3.49932
    3.09846   75.29150   -1.14593
     
    My current attempts have led me to numerous websites on gnuplot tutorials, but none have done the job.

    I am looking to plot these points with the second column as x, the third as y, and the first column as z.

    This is what I have so far (which gives me an empty plot):
    Code (Text):

    set zrange [3.08:3.11]        
    set yrange [-8:8]      
    set xrange [65:90]  
    splot "xphase.txt" using 2:3:1
     
    Thank you in advance for your help!
     
  2. jcsd
  3. Jul 22, 2012 #2
    Last edited: Jul 22, 2012
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Gnuplot - 3d points
  1. Gnuplot and Latex (Replies: 15)

  2. Gnuplot bug? (Replies: 1)

Loading...