From: <pl...@pi...> - 2008-04-13 08:55:37
|
On Sun, 13 Apr 2008 03:06:27 +0200, Ethan A Merritt <merritt@u.washington.edu> wrote: > On Saturday 12 April 2008 17:38, pl...@pi... wrote: >> Hi, >> >> a minor issue but worth fixing at some stage. >> >> I need to get the key box as tight as possible to prevent it >> over-running >> my plots. This must surely be quite a common concern. >> >> In trying to reduce it I notice that there are one or two extras space >> characters before each legend's text. The space after the line sample >> seems a reasonable size but the left border space is about three times >> bigger. This is wasted space and a visual imbalance. > > I can't seem to reproduce this problem. > Please tell us the exact version of gnuplot you are using, > and the exact "set terminal" command including the font. > Hi, currently using CVS build early April 2008. Other plots showing similar defects date back a year and use cvs from either march or sept 07. I dont see any notable change due to date. The output is mainly svg but you can see the left margin issue on png and jpeg during this period. http://www.piments.com/panel All the 150tank* files here produced by basically the same gnuplot file as far as key box is concerned. An interesting example is : http://piments.com/panel/trans-fn.svg Also a variant on the same source this shows no padding. I have looked into experimenting with this and find the lenghts of the plot titles seems to be a key factor. If I mod this source and change nothing else I start to get margins. plot Th4(RR1(x)) t "Rf=3k3" \ ,Th4(RR2(x)) t "short Rf=4k7" \ ,Th4(RR3(x)) t "long energy Rf=6k8" \ ,Th4(RR7(x)) t "Energy Rf=15k" This does not reproduce in png/jpeg in this particular test , just svg. I viewed the file in Opera / ffox / inkscape , all gave the same rendition. So it appears there is an svg specific issue but also something producing spacing on the other plots you can see in the link in both png and jpeg. HTH. > The one case I know of that behaves somewhat like this is when you > have an enhanced text string as a plot title. Gnuplot over-estimates > the length of the title because of the enhanced text mark-up characters. > You can adjust this by using the "width" keyword to "set key box". > > No use of enhanced here. > > >> Also there seems to be no top margin. The "l" in plot of my first line >> actually touches the box (with set key box). >> >> If someone works on this part of gnuplot it maybe a thing to tidy up. >> >> A consistant border all the way round would be nice. Maybe with an >> option >> border width to control it like is possible with vertical line spacing. > |