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 15:49:47 +0000

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.


reply via email to

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