help-octave
[Top][All Lists]
Advanced

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

Re: meshc: how to control contour curves?


From: karl
Subject: Re: meshc: how to control contour curves?
Date: Wed, 16 Dec 2015 15:26:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Am 16.12.2015 um 12:23 schrieb Doug Stewart:


On Wed, Dec 16, 2015 at 3:00 AM, karl <address@hidden> wrote:
Hi everybody,

short question about meshc. Is there any possibility to control the contour curves, i.e.
number of curves, level, appearance?
I didn't find anything about this in the documentation and googling did not help either.

Thanks
Karl

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



--


you can do it this way.


colormap ('default');
 [X, Y] = meshgrid (linspace (-3, 3, 40));
 Z = sqrt (abs (X .* Y)) ./ (1 + X.^2 + Y.^2);
 mesh(X,Y,Z)
 hold on 
 contour(X,Y,Z,30)

Doug
 
Thanks, Doug. So I assume I have to couple mesh and contour to have control as in your example.
Karl

reply via email to

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