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:

output


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -