|
From: Daniel J S. <dan...@ie...> - 2005-01-10 19:46:26
|
Ethan Merritt wrote: >On Monday 10 January 2005 10:38 am, Daniel J Sebald wrote: > > >>No, I meant the "set size square" problem. Gnuplot creates a plot that >>is square. However, the whitespace it leaves is still the same aspect >>ratio as the default. >> >> > >I would claim that is the correct thing for it to do. > >The size of the "page" should be set at the terminal level. >The size and aspect ratio of the "plot" should be set by >the core command "set size". This is how it works for >multiplot, right? > > I suppose you are correct. However, I think we are left with the same trial-and-error-ish-ness. >If you change things so that "set size" affects the whole >page size, then won't it totally break multiplot? > >If you want a square plot on a square page, then you need to do >something like: > > set term png size 500,500 > set size square > > PostScript doesn't have a size (or more appropriately BoundingBox) specification. But still, what would be the difference of having to tweak the values in the PostScript file or at the "set term" line? In the former case at least you can just modify the number and reload the PS file in Ghostview. In the latter case one must continually reissue the plotting sequence of commands, then reload the PS file in Ghostview. I just tried an example with the above PNG syntax. With a color box on the right side, and the square image, and the 500 by 500 output, there remains whitespace now at the top of the image. >For the png driver there is the additional option of using > > set term png crop > set size square > >which may be closer to what you are looking for. > > YES!!!!!!!! Everything fine trimmed right up to the first non-white pixels. Perfect. Every terminal should have such an option. Dan |