Gnuplot: Plotting 3D Points with splot Command

AI Thread Summary
The discussion centers on an issue with the splot command in gnuplot for plotting 3D data. The user is trying to visualize data from a file with three columns, intending to use the second column as the x-axis, the third as the y-axis, and the first as the z-axis. Despite following various tutorials, the user is encountering an empty plot. They have set the zrange, yrange, and xrange but still face difficulties. Suggestions include checking the data format and considering the use of Maxima as a front end to gnuplot for enhanced plotting capabilities.
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!
 
Physics news on Phys.org
Back
Top