Skip to main content
Library homepage
 
Engineering LibreTexts

4.5: Three-Dimensional Plotting Commands

  • Page ID
    86636
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Command Effect

    contour 

    Creates contour plot.

    mesh 

    Creates three-dimensional mesh surface plot.

    meshc 

    Same as mesh with contour plot underneath.

    meshz 

    Same as mesh with vertical lines underneath.

    plot3 

    Creates three-dimensional plots from lines and points.

    surf 

    Creates shaded three-dimensional mesh surface plot.

    surfc 

    Same as surf with contour plot underneath.

    meshgrid 

    Creates rectangular grid.

    waterfall 

    Same as mesh with mesh lines in one direction.

    zlabel 

    Adds text label to z-axis.


    4.5: Three-Dimensional Plotting Commands is shared under a CC BY 1.3 license and was authored, remixed, and/or curated by Brian Vick, Virginia Tech.

    • Was this article helpful?