[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Updaters and default property values (was :Changeset 14257 oddities)
From: |
Michael Goffioul |
Subject: |
Re: Updaters and default property values (was :Changeset 14257 oddities) |
Date: |
Mon, 12 Mar 2012 14:10:25 +0000 |
On Mon, Mar 12, 2012 at 2:04 PM, Ben Abbott <address@hidden> wrote:
> On Mar 12, 2012, at 5:41 AM, Michael Goffioul wrote:
>
>> On Mon, Mar 12, 2012 at 1:48 AM, Ben Abbott <address@hidden> wrote:
>>> Rik,
>>>
>>> I just realized the images produced for the docs are modifying the default
>>> paperorientation to "landscape". The entire sequence is ...
>>>
>>> function set_print_size ()
>>> image_size = [5.0, 3.5];
>>> border = 0;
>>> set (0, "defaultfigurepapertype", "<custom>");
>>> set (0, "defaultfigurepaperorientation", "landscape");
>>> set (0, "defaultfigurepapersize", image_size + 2*border);
>>> set (0, "defaultfigurepaperposition", [border, border, image_size]);
>>> endfunction
>>>
>>> And when the defaults are populated into a new figure the updating of the
>>> property values are not working as intended.
>>>
>>> This is causing the images for the figures to be rotated and cropped.
>>>
>>> I'm unfamiliar with how the initialization of an objects properties works.
>>>
>>> Can someone explain the process to me, or point me to code that does this?
>>
>> This is achieved in base_properties::set_from_list. This ends up
>> calling base_graphics_object::set, which will should end up calling
>> set_<property>.
>>
>> Michael.
>
> I took a quick look. I think I'm following the part below
>
> graphics.cc (base_properties::set_from_list)
>
> But I don't see where base_graphics_object::set is defined.
In the auto-generated graphics-prop.cc file.
>
> In any event, set_<property>() should call the updaters correct ?
Yes.
Michael.
- Re: Changeset 14257 oddities, Ben Abbott, 2012/03/10
- Re: Changeset 14257 oddities, Ben Abbott, 2012/03/10
- Re: Changeset 14257 oddities, Rik, 2012/03/10
- Re: Changeset 14257 oddities, Ben Abbott, 2012/03/10
- Re: Changeset 14257 oddities, Ben Abbott, 2012/03/10
- Re: Changeset 14257 oddities, Ben Abbott, 2012/03/10
- Re: Changeset 14257 oddities, Ben Abbott, 2012/03/11
- Updaters and default property values (was :Changeset 14257 oddities), Ben Abbott, 2012/03/11
- Re: Updaters and default property values (was :Changeset 14257 oddities), Michael Goffioul, 2012/03/12
- Re: Updaters and default property values (was :Changeset 14257 oddities), Ben Abbott, 2012/03/12
- Re: Updaters and default property values (was :Changeset 14257 oddities),
Michael Goffioul <=
- Re: Updaters and default property values (was :Changeset 14257 oddities), Ben Abbott, 2012/03/12
- Re: Updaters and default property values (was :Changeset 14257 oddities), Michael Goffioul, 2012/03/12
- Re: Updaters and default property values, Rik, 2012/03/12
- Re: Updaters and default property values, Ben Abbott, 2012/03/12
- Re: Updaters and default property values, Rik, 2012/03/12
- Re: Updaters and default property values, Ben Abbott, 2012/03/12
- Re: Updaters and default property values, Rik, 2012/03/12
- Re: Updaters and default property values, Ben Abbott, 2012/03/12
- Re: Updaters and default property values (was :Changeset 14257 oddities), Ben Abbott, 2012/03/12
- Re: Updaters and default property values, Rik, 2012/03/12