|
From: <pl...@pi...> - 2008-04-13 07:58:07
|
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. > > 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". > > > > >> 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. > Hi, I am running CVS gnuplot rebuild at begining April 08. I noticed this on svg output and looking back over archived plots (done with 6 mth old cvs) I note that png seems exactly the same layout: http://piments.com/panel/images/ however I have a jpeg (prob cvs march 07) that has no left margin and the first letter of the longest label touches the box. This one has a rather large left margin , is there a minimum default width at play here? http://piments.com/panel/150tank-txW.svg cf http://piments.com/panel/150tank-txI.jpeg cf file://localhost/tmpd/img/panel/150tank-tx6.png Looking over many outputs over this period of time I see many different behaviours. For example this svg which has zero top and left margin but reasonable right and bottom. This has not explicit key commands in the source file. http://piments.com/panel/trans-fn.svg Feel free to parouse http://piments.com/panel and http://piments.com/panel/images there are a variety of output formats dating from this period. All the 150tank* files are essentially the same gnuplot source as far as the box goes. There are a number of different plot titles in plot commands , none of which have any leading spaces. The only key commands are: set key box set key top right HTH. /Peter. |