PLSHADES(3plplot)
π NAME π
okay so bestie, welcome to PLSHADES(3plplot) from the PLplot API π«Ά This one is literally about shading regions on the basis of value. That's the whole name vibe. β¨
π SYNOPSIS π
plshades(a, nx, ny, defined, xmin, xmax, ymin, ymax, clevel, nlevel,
fill_width, cont_color, cont_width, fill, rectangular, pltr, pltr_data)
π¦ DESCRIPTION π¦
Shade regions on the basis of value. This is the high-level routine for making continuous color shaded plots with cmap1, while plshade(3plplot) should be used to plot individual shaded regions using either cmap0 or cmap1. The file pattern examples/;<language>/x16* shows how to use plshades(3plplot) for each of our supported languages. π
Redacted form: General: plshades(a, defined, xmin, xmax, ymin, ymax, clevel, fill_width, cont_color, cont_width, fill, rectangular, pltr, pltr_data)
This function is used in examples 16, 21, and 22. Slay.
π ARGUMENTS π
a(PLFLT_MATRIX(3plplot), input) β A matrix containing function values to plot. Should have dimensions ofnxbyny. πnx(PLINT(3plplot), input) β First dimension of matrixa.ny(PLINT(3plplot), input) β Second dimension of matrixa.defined(PLDEFINED_callback(3plplot), input) β Callback function specifying the region that should be plotted in the shade plot. This function accepts x and y coordinates as input arguments and must return1if the point is to be included in the shade plot and0otherwise. If you want to plot the entire shade plot (the usual case), this argument should be set toNULL. π«Άxmin,xmax,ymin,ymax(PLFLT(3plplot), input) β See the discussion ofpltrbelow for how these arguments are used (only for the special case when the callback functionpltris not supplied). πclevel(PLFLT_VECTOR(3plplot), input) β A vector containing the data levels corresponding to the edges of each shaded region that will be plotted by this function. To work properly the levels should be monotonic. πnlevel(PLINT(3plplot), input) β Number of shades plus1(i.e., the number of shade edge values inclevel). No cap.fill_width(PLFLT(3plplot), input) β Defines the line width used by the fill pattern. ποΈcont_color(PLINT(3plplot), input) β Definescmap0pen color used for contours defining edges of shaded regions. The pen color is only temporary set for the contour drawing. Set this value to zero or less if no shade edge contours are wanted. π¨cont_width(PLFLT(3plplot), input) β Defines line width used for contours defining edges of shaded regions. This value may not be honored by all drivers. The pen width is only temporary set for the contour drawing. Set this value to zero or less if no shade edge contours are wanted. ποΈfill(PLFILL_callback(3plplot), input) β Callback routine used to fill the region. Useplfill(3plplot)for this purpose. πrectangular(PLBOOL(3plplot), input) β Setrectangularto true if rectangles map to rectangles after coordinate transformation withpltrl. Otherwise, setrectangularto false. Ifrectangularis set to true,plshadetries to save time by filling large rectangles. This optimization fails if the coordinate transformation distorts the shape of rectangles. For example a plot in polar coordinates has to haverectangularset to false. β οΈpltr(PLTRANSFORM_callback(3plplot), input) β A callback function that defines the transformation between the zero-based indices of the matrixaand world coordinates. Ifpltris not supplied (e.g., is set toNULLin the C case), then the x indices ofaare mapped to the rangexminthroughxmaxand the y indices ofaare mapped to the rangeyminthroughymax. For the C case, transformation functions are provided in the PLplot library:pltr0(3plplot)for the identity mapping, andpltr1(3plplot)andpltr2(3plplot)for arbitrary mappings respectively defined by vectors and matrices. In addition, C callback routines for the transformation can be supplied by the user such as themypltrfunction inexamples/c/x09c.cwhich provides a general linear transformation between index coordinates and world coordinates. For languages other than C you should consult the PLplot documentation for the details concerning howPLTRANSFORM_callback(3plplot)arguments are interfaced. However, in general, a particular pattern of callback-associated arguments such as atrvector with6elements;xgandygvectors; orxgandygmatrices are respectively interfaced to a linear-transformation routine similar to the abovemypltrfunction;pltr1(3plplot); andpltr2(3plplot). Furthermore, some of our more sophisticated bindings (see, e.g., the PLplot documentation) support native language callbacks for handling index to world-coordinate transformations. Examples of these various approaches are given inexamples/<language>x09*,examples/<language>x16*,examples/<language>x20*,examples/<language>x21*, andexamples/<language>x22*, for all our supported languages. π§pltr_data(PLPointer(3plplot), input) β Extra parameter to help pass information topltr0(3plplot),pltr1(3plplot),pltr2(3plplot), or whatever routine that is externally supplied. π«Ά
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. Iconic behavior, honestly. π
π₯ SEE ALSO π₯
PLplot documentation at http://plplot.sourceforge.net/documentation.php. Go read it, bestie. π
okay bestie, that's the whole page π
β this is PLSHADES(3plplot) from the PLplot API, dated August, 2026. Now go make some continuous color shaded plots with cmap1 and absolutely slay. periodt. πβ¨
π¦ where this page comes from
- ubuntu stonking: plplot-doc 5.15.0+dfsg3-4 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms