How do I draw a set of vertical lines in gnuplot?

agam picture agam · Dec 16, 2010 · Viewed 106.8k times · Source

E.g. if I have a graph and want to add vertical lines at every 10 units along the X-axis.

Answer

Throwback1986 picture Throwback1986 · Dec 16, 2010

Here is a snippet from my perl script to do this:

print OUTPUT "set arrow from $x1,$y1 to $x1,$y2 nohead lc rgb \'red\'\n";

As you might guess from above, it's actually drawn as a "headless" arrow.