Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GNUPlot : Can't set ylabel vertical

Good Morning,

I'm using GNUPlot with LaTeX term to import graphics in LaTeX. By default my y-label is horizontal and I want it to be vertical.

Writing the following does give the results I'm after:

set term latex 
set out 'm16.tex'

set xrange [0:20] 
set datafile separator ',' 
set key inside bottom 
set size 0.65,0.9 
set xlabel 'Number of samples'
set ylabel 'Occurences' rotate by 90
like image 374
Thibaud Avatar asked Nov 18 '25 09:11

Thibaud


1 Answers

You have to specify the rotate option when setting the latex terminal:

set term latex rotate

From help latex:

If 'rotate' is specified, rotated text, especially a rotated y-axis label, is possible (the packages graphics or graphicx are needed). The 'stacked' y-axis label mechanism is then deactivated.

like image 93
user8153 Avatar answered Nov 21 '25 09:11

user8153



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!