problems with pagesize

Ben Abbott bpabbott at mac.com
Sun Nov 9 03:15:32 CST 2008


I'm running sources pulled and built on Nov 2. I've made one change in  
graphics.h.in

< 2354       array_property papersize r , Matrix (1, 2, 0)

 > 2354       array_property papersize r , Matrix (1, 4, 0)

I'm unfamiliar with the c++ side, but I inferred that (1, 4, 0)  
created a matrix 1x2 and initialized it with 0's. As the papersize  
should be 1x2, I changed it.

However, that is not my problem.

	octave:1> figure ()
	octave:1> get (gcf, "papersize")
	ans =  0   0
	octave:2> set (gcf, "papersize", [8.5 11])
	error: set: unknown property "papersize"

Perhaps this error is intentional and those who wrote this part expect  
"papertype" to be changed instead.

In any event, the error should not occur.  In Matlab

	>> figure(1)
	>> get(gcf,'papersize')
	ans =          8.5           11
	>> set(gcf,'papersize',[6,4])
	>> get(gcf,'papertype')
	ans = <custom>

I'm fairly close to being able to use the figures "position" and  
"papersize"/"paperposition" to control the canvas size gnuplot. If  
someone can take care of this for me, it would be greatly appreciated.

TiA
Ben


More information about the Octave-maintainers mailing list