[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with printing plots
From: |
Ben Abbott |
Subject: |
Re: Problem with printing plots |
Date: |
Fri, 09 Mar 2012 20:41:05 -0500 |
On Mar 9, 2012, at 8:07 PM, Ben Abbott wrote:
> On Mar 9, 2012, at 5:37 PM, Michael Goffioul wrote:
>
>> On Fri, Mar 9, 2012 at 10:33 PM, Ben Abbott <address@hidden> wrote:
>>> I tried removing the 2D constraint from graphics.h.in.
>>>
>>> 4290 position.add_constraint (dim_vector (1, 2));
>>>
>>> The result is an error occurs when the text position property is set using
>>> a 1x2 value.
>>>
>>> For compatibility we need to be able to set the text position using 1x2 or
>>> 1x3. When setting 1x2 the 3rd element should take on the default.
>>
>> What's happening on ML when setting text position with 1x2 vector?
>> Does it return 1x3 vector when getting the position afterwards?
>
> Yes ... my apologies for not being clear about that.
>
>>> Is there a way to do that in graphics.h.in or should a custom inline
>>> definition for set_position be added for text objects?
>>
>> Yes, you'll need to override the default generated set_position method.
>>
>> Michael.
>
> The attached passed a few tests for me, but I suspect it is ugly to those
> with c++ skills.
>
> Critiques welcome :-)
>
> Ben
>
> <changeset.patch>
This change breaks the synchronization of the axes position.
To see the effect run the legend demos.
Ben
- Re: Problem with printing plots, (continued)
- Re: Problem with printing plots, Ben Abbott, 2012/03/09
- Re: Problem with printing plots, Michael Goffioul, 2012/03/09
- Re: Problem with printing plots, Ben Abbott, 2012/03/09
- Re: Problem with printing plots, Ben Abbott, 2012/03/09
- Re: Problem with printing plots, Ben Abbott, 2012/03/09
- Re: Problem with printing plots, Michael Goffioul, 2012/03/09
- Re: Problem with printing plots, Ben Abbott, 2012/03/09
- Re: Problem with printing plots, Ben Abbott, 2012/03/09
- Re: Problem with printing plots, Michael Goffioul, 2012/03/09
- Re: Problem with printing plots, Ben Abbott, 2012/03/09
- Re: Problem with printing plots,
Ben Abbott <=
- Re: Problem with printing plots, Michael Goffioul, 2012/03/10
- Re: Problem with printing plots, Ben Abbott, 2012/03/10
- Re: Problem with printing plots, Michael Goffioul, 2012/03/10
- Re: Problem with printing plots, Ben Abbott, 2012/03/10
- Re: Problem with printing plots, Michael Goffioul, 2012/03/10
- Re: Problem with printing plots, Ben Abbott, 2012/03/10
- Re: Problem with printing plots, logari81, 2012/03/12
- Re: Problem with printing plots, Jordi GutiƩrrez Hermoso, 2012/03/10
- Re: Problem with printing plots, Michael Goffioul, 2012/03/09