|
From: John <aen...@ya...> - 2006-11-02 12:30:22
|
Hi, 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? 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 |
|
From: Daniel J S. <dan...@ie...> - 2006-11-03 23:29:45
|
John wrote: > Hi, > > 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? > > 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, I'm not sure there is such a feature. The keys are gradually getting upgrades, but probably not top priority stuff. I'll admit they aren't the most flexible some times. Perhaps you could contribute a patch. Any ideas for how best to specify desired width? Are you thinking manually adjustment? I don't think interpretting the TeX is in the immediate future. Maybe some phantom text (kind of strange solution though)? Dan |
|
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 |
|
From: <HBB...@t-...> - 2006-11-03 23:29:01
|
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? Sort-of. It's the only you already found: overriding the key width by hand. Short of embedding a complete TeX implemention inside gnuplot, that's all that can be done. |
|
From: James R. V. Z. <jr...@co...> - 2006-11-12 04:11:13
|
Hans-Bernhard_Br=F6ker?= <HBB...@t-...> wrote:
> 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?
>
> Sort-of. It's the only you already found: overriding the key width by
> hand. Short of embedding a complete TeX implemention inside gnuplot,
> that's all that can be done.
gnuplot could run TeX on the code then render the result to PostScript
or a bitmap. I think that's how latex2html works.
- Jim Van Zandt
|
|
From: <HBB...@t-...> - 2006-11-12 22:07:51
|
James R. Van Zandt wrote: > gnuplot could run TeX on the code then render the result to PostScript > or a bitmap. _If_ TeX happens to be available, and gnuplot manages to find it. That's a pretty huge "if" on non-Unix platforms. And in the end, the result wouldn't be any bit better than just letting TeX do the entire job, which we already do. |