.\" This page was automatically generated.  Do not edit!
.\" 
.TH PLSHADE1 3plplot  "February, 2014" "" "PLplot API"
.SH NAME
\fBplshade1\fP - Shade individual region on the basis of value 
.SH SYNOPSIS
\fBplshade1\fP(\fIa\fP, \fInx\fP, \fIny\fP, \fIdefined\fP, \fIxmin\fP, \fIxmax\fP, \fIymin\fP, \fIymax\fP, \fIshade_min\fP, \fIshade_max\fP, \fIsh_cmap\fP, \fIsh_color\fP, \fIsh_width\fP, \fImin_color\fP, \fImin_width\fP, \fImax_color\fP, \fImax_width\fP, \fIfill\fP, \fIrectangular\fP, \fIpltr\fP, \fIpltr_data\fP)
.SH DESCRIPTION

.P
Shade individual region on the basis of value.  Use \fBplshades\fP(3plplot) if you want to shade a number of contiguous regions using continuous colors.  In particular the edge contours are treated properly in \fBplshades\fP(3plplot). If you attempt to do contiguous regions with \fBplshade1\fP(3plplot) (or \fBplshade\fP(3plplot)) the contours at the edge of the shade are partially obliterated by subsequent plots of contiguous shaded regions. \fBplshade1\fP(3plplot) differs from \fBplshade\fP(3plplot) by the type of the first argument.  Look at the argument list below, \fBplcont\fP(3plplot) and the PLplot documentation for more information about the transformation from grid to world coordinates.  Shading NEEDS DOCUMENTATION, but as a stopgap look at how \fBplshade\fP(3plplot) is used in examples/c/x15c.c
.P
Redacted form:  General: \fBplshade1(a, defined, xmin, xmax, ymin, ymax, shade_min, shade_max, sh_cmap, sh_color, sh_width, min_color, min_width, max_color, max_width, fill, rectangular, pltr, pltr_data)\fP
Perl/PDL: \fBplshade1(a, xmin, xmax, ymin, ymax, shade_min, shade_max, sh_cmap, sh_color, sh_width, min_color, min_width, max_color, max_width, fill, rectangular, defined, pltr, pltr_data)\fP

.P
This function is used in example 15. 
.SH ARGUMENTS
.TP
\fIa\fP (const PLFLT *, input) 
Contains array to be plotted. The array must have been declared as PLFLT a[nx][ny]. 
.TP
\fInx\fP (PLINT, input) 
First dimension of array "a". 
.TP
\fIny\fP (PLINT, input) 
Second dimension of array "a". 
.TP
\fIdefined\fP (PLINT (*) (PLFLT, PLFLT), input) 
User function specifying regions excluded from the shading plot.  This function accepts x and y coordinates as input arguments and must return 0 if the point is in the excluded region or 1 otherwise. This argument can be NULL if all the values are valid. 
.TP
\fIxmin\fP (PLFLT, input) 
Defines the "grid" coordinates.  The data a[0][0] has a position of (xmin,ymin), a[nx-1][0] has a position at (xmax,ymin) and so on. 
.TP
\fIxmax\fP (PLFLT, input) 
Defines the "grid" coordinates.  The data a[0][0] has a position of (xmin,ymin), a[nx-1][0] has a position at (xmax,ymin) and so on. 
.TP
\fIymin\fP (PLFLT, input) 
Defines the "grid" coordinates.  The data a[0][0] has a position of (xmin,ymin), a[nx-1][0] has a position at (xmax,ymin) and so on. 
.TP
\fIymax\fP (PLFLT, input) 
Defines the "grid" coordinates.  The data a[0][0] has a position of (xmin,ymin), a[nx-1][0] has a position at (xmax,ymin) and so on. 
.TP
\fIshade_min\fP (PLFLT, input) 
Defines the lower end of the interval to be shaded. If shade_max <= shade_min, \fBplshade1\fP(3plplot) does nothing. 
.TP
\fIshade_max\fP (PLFLT, input) 
Defines the upper end of the interval to be shaded. If shade_max <= shade_min, \fBplshade1\fP(3plplot) does nothing. 
.TP
\fIsh_cmap\fP (PLINT, input) 
Defines color map. If  \fIsh_cmap\fP=0, then \fIsh_color\fP is interpreted as a color map 0 (integer) index.  If  \fIsh_cmap\fP=1, then \fIsh_color\fP is interpreted as a color map 1 floating-point index which ranges from 0. to 1. 
.TP
\fIsh_color\fP (PLFLT, input) 
Defines color map index if cmap0 or color map input value (ranging from 0. to 1.) if cmap1. 
.TP
\fIsh_width\fP (PLFLT, input) 
Defines width used by the fill pattern. 
.TP
\fImin_color\fP (PLINT, input) 
Defines pen color, width used by the boundary of shaded region. The min values are used for the shade_min boundary, and the max values are used on the shade_max boundary.  Set color and width to zero for no plotted boundaries. 
.TP
\fImin_width\fP (PLFLT, input) 
Defines pen color, width used by the boundary of shaded region. The min values are used for the shade_min boundary, and the max values are used on the shade_max boundary.  Set color and width to zero for no plotted boundaries. 
.TP
\fImax_color\fP (PLINT, input) 
Defines pen color, width used by the boundary of shaded region. The min values are used for the shade_min boundary, and the max values are used on the shade_max boundary.  Set color and width to zero for no plotted boundaries. 
.TP
\fImax_width\fP (PLFLT, input) 
Defines pen color, width used by the boundary of shaded region. The min values are used for the shade_min boundary, and the max values are used on the shade_max boundary.  Set color and width to zero for no plotted boundaries. 
.TP
\fIfill\fP (void (*) (PLINT, const PLFLT *, const PLFLT *), input) 
Routine used to fill the region.  Use \fBplfill\fP(3plplot).  Future version of plplot may have other fill routines. 
.TP
\fIrectangular\fP (PLBOOL, input) 
Set \fIrectangular\fP to true if rectangles map to rectangles after coordinate transformation with \fIpltrl\fP.  Otherwise, set \fIrectangular\fP to false. If \fIrectangular\fP is set to true, plshade tries 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 have \fIrectangular\fP set to false. 
.TP
\fIpltr\fP (void (*) (PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) , input) 
Pointer to function that defines transformation between indices in array \fIz\fP and the world coordinates (C only).  Transformation functions are provided in the PLplot library: \fBpltr0\fP(3plplot) for identity mapping, and \fBpltr1\fP(3plplot) and \fBpltr2\fP(3plplot) for arbitrary mappings respectively defined by one- and two-dimensional arrays.  In addition, user-supplied routines for the transformation can be used as well.  Examples of all of these approaches are given in the PLplot documentation. The transformation function should have the form given by any of \fBpltr0\fP(3plplot), \fBpltr1\fP(3plplot), or \fBpltr2\fP(3plplot). 
.TP
\fIpltr_data\fP (PLPointer, input) 
Extra parameter to help pass information to \fBpltr0\fP(3plplot), \fBpltr1\fP(3plplot), \fBpltr2\fP(3plplot), or whatever routine that is externally supplied. 

.SH AUTHORS
Many developers (who are credited at http://plplot.sourceforge.net/credits.php)
have contributed to PLplot over its long history.
.SH SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/documentation.php.
