'paperpositionmode' change to rid gnuplot_set_term: size is zero

Ben Abbott bpabbott at mac.com
Sat Jan 3 07:06:10 CST 2009


On Jan 3, 2009, at 1:30 AM, Daniel J Sebald wrote:

> In using print for EPS files, I see the error message:
>
> gnuplot_set_term: size is zero
>
> The reason is that the paperposition is set at [0 0 0 0] and the  
> default setting is 'manual'.  Perhaps the default should be 'auto'.
>
> In any case, here is a patch that will sett a reasonable default for  
> the 'auto' setting.  It may not be the best solution, so perhaps  
> John or Dave could have a look since they're two of the few people  
> that have larger change-sets for gnuplot_drawnow.m.
>
> Dan

The problem you're seeing is quite a bit larger than "paperposition".   
In my octaverc I set several property defaults. See below ...

if compare_versions (version, "3.1.0", ">=")
   set (0, "defaultaxesfontname", "Helvetica")
   set (0, "defaultaxesfontsize", 14)
   set (0, "defaultaxesinterpreter", "tex")
   set (0, "defaultaxesxtick", [0:0.2:1])
   set (0, "defaultaxesytick", [0:0.2:1])
   set (0, "defaultaxesztick", [0:0.2:1])
   set (0, "defaultaxesxtickmode", "auto")
   set (0, "defaultaxesytickmode", "auto")
   set (0, "defaultaxesztickmode", "auto")
   set (0, "defaultaxesactivepositionproperty", "outerposition")
   set (0, "defaultfigurepapertype", "usletter")
   set (0, "defaultfigurepapersize", [8.5 11])
   set (0, "defaultfigureposition", [440 314 560 420])
   set (0, "defaultfigurepaperposition", [0.25, 2.5, 8, 6])
   set (0, "screensize", [1, 1, 1440, 900])
   set (0, "screenpixelsperinch", 1440/14)
   edit editinplace true
   edit home .
endif

I'm not sure where such defaults should be set in the sources.  
However, I am rather confident it is at a low level. If someone can  
offer some guidance, preferably give an example of code setting just  
one of these (for the c++ deficient like myself) I'd be happy to add  
these as well as others.

Ben





More information about the Octave-maintainers mailing list