octave-maintainers
[Top][All Lists]
Advanced

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

Re: Unimplemented graphics properties


From: Mike Miller
Subject: Re: Unimplemented graphics properties
Date: Thu, 16 Jun 2016 09:57:08 -0700
User-agent: Mutt/1.6.0 (2016-04-01)

On Thu, Jun 16, 2016 at 09:41:34 -0700, Rik wrote:
> Octave does not yet implement all of the graphics properties supported by
> Matlab.  For example, in graphics.in.h there is the following note:
> 
>     // FIXME: Properties that still don't have callbacks are:
>     // monitorpositions, pointerlocation, pointerwindow.
>     // Note that these properties are not yet used by Octave, so setting
>     // them will have no effect.
> 
> Currently, when read, these properties return all zeros.  Would it not be
> better to return NA (Not Applicable) to indicate that these are
> unsupported?  I think that would be more instructive.
> 
> It's a trivial change to the code:
> 
> array_property monitorpositions r , Matrix (1, 4, 0.0)
> =>
> array_property monitorpositions r , Matrix (1, 4, octave_NA)

I don't think it would be more helpful or clearer to the end user. But I
think it might be a useful flag to us when users ask why the value
contains NA.

-- 
mike



reply via email to

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