folks, I was hoping someone could help me out. I am trying to use a datafile to create a fence plot with Gnuplot (version 5.2 patchlevel 7) that hopefully would look something like this: Fence plot using Gnuplot
However, using the script
set terminal pngcairo enhanced size 800,600
set output 'output1.png'
splot for [i=0:615000:12300] "datafile" index i u 1:2:3 with lines
the results were disappointing. My output:Failed attempt at fence plot with Gnuplot
My datafile is very big and slightly different from the one used to make the plot I’m trying to recreate: It has 615000 lines, with 5000 “blocks” of data, each containing the value of a function at a specific time for 123 grid sites, from grid site 240 to grid site 362, without blank lines between the blocks. It looks like this:
0.000 240 0.20000000E-39
0.000 241 0.20000000E-39
0.000 242 0.20000000E-39
...
0.000 361 0.20000000E-39
0.000 362 0.20000000E-39
0.020 240 0.20000000E-39
0.020 241 0.20000000E-39
...
and so on.
If I want some 50 lines to show up on the plot, like , I would imagine I need to skip several blocks, and only plot the relevant block after many timesteps, but I don’t know how to do it.
I realize that there are several questions that have been asked about fence plots with Gnuplot, and I went over all of them, but I completely failed in adapting their suggestions to my current case. Any help would be much appreciated.
Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.