Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gnuplot grid format xtics mxtics

Tags:

gnuplot

How can I define one format for the main grid (xtics, ytics) and another one for the minor tics (mxtics and mytics)?

I tried:

set style line 100 lt 1 lc rgb "gray" lw 2
set style line 101 lt 1 lc rgb "gray" lw 1
set grid xtics ytics ls 100
set grid mxtics mytics ls 101

But this take the last defined lw (1) for all grids.

like image 661
ripat Avatar asked Jul 15 '12 14:07

ripat


People also ask

What is the default text size for tics in gnuplot?

The default size 1.0 for major tics and 0.5 for minor tics is requested by scale default. rotate asks gnuplot to rotate the text through 90 degrees, which will be done if the terminal driver in use supports text rotation. norotate cancels this.

What is axis in gnuplot tics?

axis or border tells gnuplot to put the tics (both the tics themselves and the accompanying labels) along the axis or the border, respectively. If the axis is very close to the border, the axis option will move the tic labels to outside the border.

What are the xtics and ytics?

set xtics ("low" 0, "medium" 50, "high" 100) set xtics (1,2,4,8,16,32,64,128,256,512,1024) set ytics ("bottom" 0, "" 10, "top" 20) set ytics ("bottom" 0, "" 10 1, "top" 20) In the second example, all tics are labelled. In the third, only the end tics are labelled. In the fourth, the unlabeled tic is a minor tic.

How to have two distinct grids in gnuplot?

In gnuplot, the grid is only drawn at the location of the major tic marks, however, if you want to have two distinct grids, you can use arrows: Thanks for contributing an answer to Stack Overflow!


1 Answers

set style line 100 lt 1 lc rgb "gray" lw 2
set style line 101 lt 0.5 lc rgb "gray" lw 1

set grid mytics ytics ls 100, ls 101
set grid mxtics xtics ls 100, ls 101

It really works :).

like image 53
Antonoffee Avatar answered Sep 20 '22 17:09

Antonoffee