octave - Drawing a contour plot (meshc) with black lines -
when using octave's mesh
function, color of lines can set edgecolor
. property isn't available when create contour plot meshc
.
is there easy way set lines of contour plot constant color?
meshc
plots contour graph under mesh graph. use h=meshc(...)
handle h
mesh (h(1)
) , contour plot (h(2)
).
change color of lines, relevant property mesh
edgecolor
while contour plot, linecolor
. need modify these properties desired output.
example:
[x,y] = meshgrid(-3:.125:3); z = peaks(x,y); h=meshc(z); set(h(1),'edgecolor','k'); set(h(2),'linecolor','k');
which gives:
Comments
Post a Comment