Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

show only legend?

1,250 views
Skip to first unread message

kf_del...@iki.fi

unread,
Dec 8, 2003, 10:10:24 AM12/8/03
to
Hi,

I have several ps files generated with gnuplot, each figure having several
different plots. The plot legends are always the same for each figure. The
problem is that the plots are growded, and the plot titles are messed up
by the different curves. One solution would be to put them outside the
plot, e.g. by 'set key below', but since the titles are always the same,
could I somehow collect the legends in some separate figure, and remove
them completely from the individual figures? E.g. by creating some "dummy"
plot, showing only the titles, and not the coordinate axis and so at all?

Thanks,

kf

Hans-Bernhard Broeker

unread,
Dec 8, 2003, 11:23:26 AM12/8/03
to
kf_del...@iki.fi wrote:

> I have several ps files generated with gnuplot, each figure having several
> different plots. The plot legends are always the same for each figure. The
> problem is that the plots are growded, and the plot titles are messed up
> by the different curves. One solution would be to put them outside the
> plot, e.g. by 'set key below', but since the titles are always the same,
> could I somehow collect the legends in some separate figure, and remove
> them completely from the individual figures?

I honestly don't see the use of that. If you don't want legends in
the plots, fine: "set nokey" and they're gone. But I really don't see
how a dummy plot with only the legends in it is going to be useful.
If you want to explain the contents outside the actual plots, you
might as well do that in the caption text of whatever document
processing system you're going to include those plots in.

> E.g. by creating some "dummy" plot, showing only the titles, and not
> the coordinate axis and so at all?

Yes. You can turn everything but the key itself off:

set noborder
set noxtics
set noytics
set notitle
set noxlabel
set noylabel
set xrange [-10:10]
set yrange [-10:10] # fix it so you can plot outside the range!
plot 20 title 'whatever you want to have in the key'

--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

0 new messages