[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: axis equal help!
From: |
Ben Abbott |
Subject: |
Re: axis equal help! |
Date: |
Tue, 13 Jul 2010 20:25:11 -0400 |
On Jul 13, 2010, at 8:03 PM, pathematica wrote:
> bpabbott wrote:
>>
>>
>> Changing the axis "position" property will work. What I had suggested was
>> to change the *figure*'s "paperposition" property.
>>
>> You'll see this property listed if you type "get (gcf ())"
>>
>> Ben
>>
>
> Hi Ben (again!)
>
> I was not able to make that work. I interrogated the graphic object (here,
> it was figure(2)) and reset the paperposition as follows:
>
>> figure(2); get (gcf (), "paperposition")
> ans =
>
> 0.25000 2.50000 8.00000 6.00000
>
>> figure(2); set (gcf (), "paperposition", [0.25000 2.50000 8.00000
>> 9.00000])
>
> (changed fourth component)
>
> but that had no effect. Would this be expected of an X-window and is it the
> correct way when I write the plot to a file (which I have not tried yet)?
>
> Thanks
As I had indicated ealier the "paperposition" property will change the result
of the print() command. To change the displayed result you need to modify the
"positon" property. When using the default gnuplot backend, this requires you
set the property when the window is created.
figure ('position', position)
Where the variable "position" contains the 1x4 vector for the figure's position
in pixels.
Ben