[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51140] Octave: expecting scalar N, or 2-/4-el
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51140] Octave: expecting scalar N, or 2-/4-element vector DOM-ezsurf Error |
Date: |
Wed, 31 May 2017 16:55:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Update of bug #51140 (project octave):
Category: Plotting with gnuplot => Octave Function
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
In order to change the graphic properties associated with a plot object you
need to have a handle to that plot object. Just ask for that handle in your
code--It is the first output argument of ezsurf. Thus, this should get you
close.
fx = @(x,y) x.*sin(y);
fy = @(x,y) -x.*cos(y);
fz = @(x,y) y;
h = ezsurf(fx, fy, fz,[-5 5 -5 -2]);
set (h, 'LineStyle','--','EdgeColor','g');
You can use
set (h)
to find a list of graphic properties to change.
The category of this bug was marked as "Plotting with gnuplot", but it is
actually a misunderstanding of how ezsurf works. I changed the category to
"Octave function".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51140>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/