[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 17:33:20 -0500 |
On Mar 9, 2012, at 10:49 AM, Michael Goffioul wrote:
> On Fri, Mar 9, 2012 at 3:23 PM, Ben Abbott <address@hidden> wrote:
>> This is not working correctly.
>>
>> p = get (ht(9), "position")
>> p =
>>
>> 0.83526 0.75000
>>
>> set (ht(9), "position", [p, 0])
>> get (ht(9), "position")
>> ans =
>>
>> 0.83526 0.75000 0.00000
>>
>> set (ht(9), "position", p)
>> get (ht(9), "position")
>> ans =
>>
>> 0.83526 0.75000
>>
>> get (ht, "position") should always return a triplet.
>
> It returns whatever you assign to it (with the constraint that it has
> to be a vector with 2 or 3 elements). If it can't be a 2D vector,
> fine, we can remove the constraint on 2D vectors in graphics.h.in, but
> I suspect this will break other things, as apparently legend is using
> 2D vectors.
>
> Michael.
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.
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?
Ben
- Re: Problem with printing plots, (continued)
- 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, 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 <=
- 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/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