From: Ethan M. <merritt@u.washington.edu> - 2006-11-03 23:30:09
|
On Thursday 02 November 2006 04:16 am, John wrote: > > I'm using the pslatex terminal of gnuplot. > Everything works fine but the annoying thing is that the default key > width is proportional to the number of characters contained in the > title. However, the numbers of characters produced by the LaTeX code > $\\delta=1$ (see code below) are less and so everytime I have to > adjust the key width by hand. Is there a trick or a regular feature > to deal with this problem? No trick that I know of. Gnuplot would have to contain a complete TeX parser in order to figure out how many printed characters result from a TeX command sequence. I'm not a big fan of the various TeX terminal types. I'm willing to accept gnuplot's own "enhanced text" mode for key entries and axis labels, and then include the resulting stand-alone png or eps file in a TeX document. But I know the mis-match in fonts between the gnuplot text and the document text bothers some people. Ethan > Here is the gnuplot code > set terminal pslatex norotate > set output "out.tex" > set format xy "$%g$" > set key right bottom Left reverse spacing 2 width -3.5 box lw 0.5 > plot [x=0:1] [0:1] "data.txt" title "$\\delta=1$" w l lt 1 lw 1 > > John -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |