|
From: Ethan M. <merritt@u.washington.edu> - 2007-12-11 00:50:18
|
On Monday 10 December 2007 04:50, Allin Cottrell wrote: > There seems to be a bug in the placement of x tic numbers in > current CVS (or perhaps, in the placement of the right edge of the > plot relative to the background): if the maximum x value is large, > the last numerical tic value gets truncated. This seems to happen > with all terminals (at least all I've tried). Simple test case: > > set xrange [-100000:100000] > plot x > > Using term pngcairo font "Vera,8" (just for example) the last > x-axis value is displayed as (almost) "10000". Part of the last > printed zero is off the edge of the graph, and the final zero is > entirely missing. You are correct. Gnuplot does not pay any attention to tick labels when allocating space for the plot. That would be quite difficult, since the precise space taken up by a text string is terminal- and font- dependent. It is particularly problematic for text strings placed at an angle other than 0. But I suppose it could make at least a rough guess. How about filing this as a Feature Request? Or, if you are so inspired, working on a patch to implement it? -- Ethan A Merritt |