[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting the canvas/image size of plot in Octave
From: |
Ben Abbott |
Subject: |
Re: Setting the canvas/image size of plot in Octave |
Date: |
Mon, 15 Apr 2013 08:35:42 -0400 |
On Apr 15, 2013, at 8:16 AM, sayaliskulkarni wrote:
> Thanks for the update Ben. But unfortunately am using an older version
> (3.2.4). Need to see if it would be possible to upgrade, but unlikely.
> Anyways thanks for the help. Would like to know if there are some more ways
> around in the older versions.
>
> Thanks
> Sayali
For 3.2.4 you'll need to adjust the axes "position" property. You can get the
values for the position properties for all the axes by ...
hax = findall (gcf (), "type", "axes");
pax = cell2mat (get (hax, "position"))
dy = 0.2 / columns (pax);
pax(:,2) = pax(:,2) + dy / 2;
pax(:,4) = pax(:,4) - dy;
for n = 1:numel(hax)
set (hax(n), "position", pax(n,:))
endfor
I don't have a copy of 3.2.4 to test this on, so this is untested.
Ben