meshc: how to control contour curves?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

meshc: how to control contour curves?

karl
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
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: meshc: how to control contour curves?

Doug Stewart-4


On Wed, Dec 16, 2015 at 3:00 AM, karl <[hidden email]> 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
[hidden email]
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
 

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: meshc: how to control contour curves?

karl
Am 16.12.2015 um 12:23 schrieb Doug Stewart:


On Wed, Dec 16, 2015 at 3:00 AM, karl <[hidden email]> 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
[hidden email]
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

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave