Currently, I'm trying to create a 3d parametric graph similar to this:
which can be found here: http://gnuplot.sourceforge.net/demo/surface1.html.
With script here: http://gnuplot.sourceforge.net/demo/surface1.17.gnu
My graph looks like this:
and I'm using this:
set datafile separator ","
set parametric
x0 = 0
x1 = 1
x2 = 2
splot 'January5.csv' u x0:1:3 with lines, 'test.csv' u x1:1:2 with lines
Obviously my graph is lacking in comparison. I really like the ability of the first graph in plotting along the x-axis. I've been trying to replicate this, but have been failing so far.
You don't really need to rely on
parametric
if you just want to plot raw data from a file.With sample data
xyz.txt
that looks like noisy sinusoidal time-series:(First column is an integer values coding x locations, 2nd and 3rd columns are for y and z. I appended the R script I used to generate those data at the end.)
I would simply use
where
impulses
draws vertical lines from the minimum of z. You can change this bevahior; for example, if you want to start at z=0, you could useNote that I used regularly spaced values for y, but that doesn't really matter.
Other variations are possible, of course. Maybe Fence plots with a some-liner or Wall charts might be of further assistance.
R script used to generate
xyz.dat
: