octave-maintainers
[Top][All Lists]
Advanced

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

Re: plot templates and options lists for set, plot etc.


From: John W. Eaton
Subject: Re: plot templates and options lists for set, plot etc.
Date: Wed, 24 Jun 2009 12:56:27 -0400

On 22-Jun-2009, Thorsten Meyer wrote:

| I have come quite far in implementing the struct case and the 1XN cell
| array case in graphics_object::set. However, for the MxN cell array
| case, I am not sure what to do:
| 
| should the MxN case be dealt with in DEFUN set, extracting the rows out
| of property_values and passing them to the set method of the
| corresponding graphics objects?
|   or
| should a special input argument be added to the set method (or a new
| set_n method)  which allows to select a row of the passed property_values?
| 
| Also, for the struct case: what does matlab do in case h is a vector of
| handles and struct is a struct array? Does it deal the elements of the
| struct array to the elements of h? I.e. is set(h,struct) equivalent to
| set(h(1), struct(1)); set(h(2), struct(2)); ...? The matlab
| documentation  isn't clear about this.

I'm not sure what the best solution is.

Could someone with a current version of Matlab try the following and
report back about what it does?

  h(1) = line (rand (3, 1), rand (3, 1));
  h(2) = line (rand (3, 1), rand (3, 1));
  s(1).Color 'red';
  s(2).Color 'green';
  set (h, s);

Thanks,

jwe


reply via email to

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