Gnuplot: Plotting 3D Points with splot Command

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 4K views
physguy2
Messages
1
Reaction score
0
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:
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:
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!
 
on Phys.org