octave-maintainers
[Top][All Lists]
Advanced

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

problems with pagesize


From: Ben Abbott
Subject: problems with pagesize
Date: Sun, 09 Nov 2008 04:15:32 -0500

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


reply via email to

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