|
From: Ethan M. <merritt@u.washington.edu> - 2007-06-01 00:36:14
|
On Thursday 31 May 2007 17:22, Mojca Miklavec wrote:
> This is a possible ugly plain TeX solution which works:
>
> set ylabel '\vbox{\hbox{This is}\hbox{the}\hbox{$y$ axis}}'
>
> If you want a cleaner solution, try to figure out on some LaTeX
> mailing list how to convince \makebox to obey the newline character.
> It's a purely LaTeX problem, although if I'm honest, the LaTeX
> terminal in gnuplot could (should?) be modified in such a way that \\
> would be obeyed out of the box.
Well, gnuplot will break it into multiple lines for you if
you enclose it in double quotes rather than single quotes,
but that makes passing through the TeX syntactic elements
a difficult task. Also the text layout is now an imperfect
blending of gnuplot's guess at what the font will look like
and LaTeX's rather better guess.
But to show that it works in principle, try the following:
set term latex
set output 'test.tex'
set title "One line\nTwo lines\nThree lines"
plot x
--
Ethan A Merritt Courier Deliveries: 1959 NE Pacific
Dept of Biochemistry
Health Sciences Building
University of Washington - Seattle WA 98195-7742
|