|
From: <dan...@ie...> - 2005-02-14 02:19:55
|
>> Or I create a simple little file with all the
>> necessary header information, then compile that and convert the figure
>> to
>> EPS using the -E option of dvips.
>
> This can be done now using 'set terminal epslatex standalone'. You don'=
t
> have to handle an additional header file then, because gnuplot produces
> everything you need. You even can omit the -E switch of dvips since the
> generated header file preserves the correct BoundaryBox, when using
> latex->dvips and when using epstopdf->pdflatex. There ist one differenc=
e:
> The new syntax produces the BoundingBox that is given by the 'set size'
> command while dvips -E cuts off all white space. If you, for example,
> produce white space around your plot, using 'set size', it is kept in y=
our
> final postscript file.
Funny because a month or so ago I had a conversation with Ethan and Hans
about cropping *all* of the white space surrounding plots. (It's always
easier to add than to take away.)
>
>> (But wouldn't a more generic format be in order,
>> where one could simply append gnuplot output to an open file?)
>
> What do you mean by that? Could you please explain it in more detail?
Well, it would be the case where the higher level application opens the
file, puts information there and then requests gnuplot to append to the
file. In fact, it could be generic, like
set output 'foo.ps' append
(I'm not proposing the above, just making a point.)
>
>> But I can't ever see myself using such a thing, unless you could
>> convince me of some time savings.
>
> As mentioned above. Just try it. For example, if you want a standalone
> plot with Times in 12pt size, use:
I can imagine using such a feature. But the typing of the LaTeX code for
the header is the issue:
> set terminal epslatex standalone header '\usepackage{mathptmx}' '' 12
What Ethan mentioned; just too cumbersome... unless one uses the syntax a
lot. I wonder why one needs this. OK, the gnuplot.cfg could cover the
special users. But since gnuplot is generating the code, why can't the
terminal driver figure out all the packages that are needed? Maybe an
option like
set terminal epslatex standalone font "times"
would result in
\usepackage{times}
in the code. Didn't Ethan propose making the "font" that keeps showing u=
p
in terminal options an actual command?
>
> What I often do is to add some code at the end of my gnuplot file:
>
> set terminal epslatex standalone rounded color linewidth 2 \
> header '\usepackage{mathpmtx}' '' 12
> set output 'myplot.tex'
> ...
> set output
> !epstopdf myplot-inc.eps
> !pdflatex myplot
>
> This produces a plot in pdf format by simply starting
> gnuplot myplot.gpl
That's nice.
> BTW: I have received two additional mails by you that cannot be display=
ed
> by my pine.
Can you tell me a date for one of those emails? Thanks,
Dan
|