octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with pagesize


From: Kai Habel
Subject: Re: problems with pagesize
Date: Sun, 09 Nov 2008 18:38:19 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20080922)

Ben Abbott schrieb:
> 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
Ben,

the papersize is set read only at the moment, see the 'r' qualifier

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

and the genprops.awk script.

I see no reason why it is set to read-only. If you remove the r and
recompile you should be able to continue with your work.

Kai


reply via email to

[Prev in Thread] Current Thread [Next in Thread]