[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9014] Add "camlight" function
From: |
Markus Mützel |
Subject: |
[Octave-patch-tracker] [patch #9014] Add "camlight" function |
Date: |
Fri, 3 Jun 2016 08:00:24 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0 |
Follow-up Comment #6, patch #9014 (project octave):
The function __plt_get_axis_arg__ looks for a handle to an axes object. (At
least, I assumed judging by its name.)
Maybe something in the lines of the following would work:
if ( nargin > 0 && isscalar (varargin{1}) && ishghandle (varargin{1}, "light")
)
h = varargin{1};
varargin(1) = [];
endif
The chance that a given value for AZ collides with a valid light handle should
be rather low.
Matlab changed in recent version to use objects rather than double values to
represent handles. That would eliminate the last chance for a collision.
However, I am not aware of any plans to do the same step for Octave.
Maybe you could also check for "isscalar" when you check for "isnumeric". That
could help to give more specific error messages.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?9014>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Colin Macdonald, 2016/06/01
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Colin Macdonald, 2016/06/02
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Markus Mützel, 2016/06/02
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Colin Macdonald, 2016/06/02
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Colin Macdonald, 2016/06/02
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Colin Macdonald, 2016/06/02
- [Octave-patch-tracker] [patch #9014] Add "camlight" function,
Markus Mützel <=
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Markus Mützel, 2016/06/03
- [Octave-patch-tracker] [patch #9014] Add "camlight" function, Markus Mützel, 2016/06/03