O'Reilly logo

gnuplot Cookbook by Lee Phillips

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making the tics stick out

The following figure illustrates another tic style available in gnuplot, where the tics stick out of the plot rather than intrude on the interior of the graph:

Making the tics stick out

This style is useful when inner tic marks might obscure your plot elements, for example, when part of the curve lies close to an axis.

How to do it…

Following is the script used to obtain the previous figure:


set tics out
set grid
plot [-3:3] tanh(x)

How it works…

The new command here is the first line, which leaves everything else the same while drawing the tics so that they stick out of the borders.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required