|
From: Pierre <pie...@ya...> - 2009-08-31 16:29:45
|
Thank you Mojca,
Setting the margin and ajusting the label offset accordingly did the trick !
Regarding problem #1, it looks like a bug in gnuplot itself no ?
Best regards,
Pierre
--- En date de : Ven 21.8.09, Mojca Miklavec <moj...@gm...> a écrit :
De: Mojca Miklavec <moj...@gm...>
Objet: Re: 3D grid draw order and latex label string width
À: "Pierre" <pie...@ya...>
Cc: gnu...@li...
Date: Vendredi 21 Août 2009, 23h36
On Fri, Aug 21, 2009 at 23:15, Pierre wrote:
>
> 2-I am using Latex to draw labels. Consider the following code :
> set term epslatex
> set output "label.eps"
> set format "\number{%g}\mylongmacrolonglongname{}"
Off-topic: you need to use single quotes if you don't want to escape
characters, but in this particular case you need \\number and
\\mylong...
> plot x
> set output
> the resulting epslatex files are attached to the mail. My problem here is
> that gnuplot count the number of chars in the format string, then uses this
> number to determines its width. Is there a way to adjust the width, as in
> the 'width' field of the gnuplot 'key' command ?
In general I don't know of any method to explicitely set the label
width, but you can use
set margin (set lmargin)
in this particular case. (I may be missing something, so don't trust my claim.)
You can also do
set format "\\a{%g}"
and then in TeX you define:
\def\a#1{\number{#1}\mylongmacrolonglongname{}}
which helps in some rare cases.
Mojca
|