octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with printing plots


From: Michael Goffioul
Subject: Re: Problem with printing plots
Date: Fri, 9 Mar 2012 22:37:45 +0000

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?

> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]