Feature request: availability to change canvas size wile printing with the driver Postscript

John W. Eaton jwe at bevo.che.wisc.edu
Tue Oct 21 19:46:48 CDT 2008


On 21-Oct-2008, François Poulain wrote:

| --------
| Bug report for Octave 3.0.1 configured for i486-pc-linux-gnu
| 
| Description:
| -----------
| 
| It's usefull to control size of canvas to make good printing, e.g. to vary aspect ratio between multiple plots of a same document.
| 
| Unfortuntelly, GNU-Octave doesn't implement the PaperSize option like in another (non-free) software.
| 
| Repeat-By:
| ---------
| 
| No needed.
| 
| Fix:
| ---
| 
| I modified print.m, in order to make possible to specify canvas size to Gnuplot driver. The code is :
| 
| --- m/plot/print.m.old	2008-10-21 17:58:44.000000000 +0200
| +++ m/plot/print.m	2008-10-21 18:03:06.000000000 +0200
| @@ -285,6 +285,9 @@
|      endif
|      endif
| 	     
| +    if (!isempty (size))
| +      options = strcat (options, "size ", size);
| +    endif
|      if (! isempty (font))
|        options = strcat (options, "\"", font, "\" ");
|      endif
|       
| With this piece of code, anyone can control canvas size of Postscript driver, with a command like
| print('essai.eps', '-S2,1')

I think a better fix would be to make the papersize property work.

jwe



More information about the Bug-octave mailing list