logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

plot3dc - Magnitude colored plot surface with contour

Arguments

x (PLFLT_VECTOR(3plplot), input)
              A vector containing the x coordinates at which the function is evaluated.

       y (PLFLT_VECTOR(3plplot), input)
              A vector containing the y coordinates at which the function is evaluated.

       z (PLFLT_MATRIX(3plplot), input)
              A matrix containing function values to plot.  Should have dimensions of nx by ny.

       nx (PLINT(3plplot), input)
              Number of x values at which function is evaluated.

       ny (PLINT(3plplot), input)
              Number of y values at which function is evaluated.

       opt (PLINT(3plplot), input)
              Determines the way in which the surface is represented. To specify more than one option  just  add
              the options, e.g. DRAW_LINEXY + MAG_COLOR opt=DRAW_LINEX : Lines are drawn showing z as a function
              of  x  for each value of y[j] .  opt=DRAW_LINEY : Lines are drawn showing z as a function of y for
              each value of x[i] .  opt=DRAW_LINEXY : Network of lines  is  drawn  connecting  points  at  which
              function  is  defined.   opt=MAG_COLOR : Each line in the mesh is colored according to the z value
              being plotted. The color is used from the current cmap1.  opt=BASE_CONT : A contour plot is  drawn
              at the base XY plane using parameters nlevel and clevel.  opt=DRAW_SIDES : draws a curtain between
              the base XY plane and the borders of the plotted function.

       clevel (PLFLT_VECTOR(3plplot), input)
              A vector containing the contour levels.

       nlevel (PLINT(3plplot), input)
              Number of elements in the clevel vector.

Authors

       Many  developers  (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its
       long history.

Description

       Aside  from  dropping the side functionality this is a more powerful form of plot3d(3plplot):thesurfacemeshcanbecoloredaccordinglytothecurrentzvaluebeingplotted,acontourplotcanbedrawnatthebaseXYplane,andacurtaincanbedrawnbetweentheplottedfunctionborderandthebaseXYplane.Theargumentsareidenticaltothoseofplmeshc(3plplot).Theonlydifferencebetweenplmeshc(3plplot)andplot3dc(3plplot)isthatplmeshc(3plplot)drawsthebottomsideofthesurface,whileplot3dc(3plplot)onlydrawsthesurfaceasviewedfromthetop.

       Redacted form: General: plot3dc(x,y,z,opt,clevel)

       This function is used in example 21.

Name

plot3dc - Magnitude colored plot surface with contour

See Also

       PLplot documentation at http://plplot.org/documentation.php.

                                                   July, 2025                                   PLOT3DC(3plplot)

Synopsis

plot3dc(x, y, z, nx, ny, opt, clevel, nlevel)

See Also