PLplot
5.11.0
|
Go to the source code of this file.
Classes | |
struct | PLOptionTable |
struct | PLGraphicsIn |
struct | PLWindow |
struct | PLDisplay |
struct | PLfGrid |
struct | PLfGrid2 |
struct | PLcGrid |
struct | PLcGrid2 |
struct | PLColor |
struct | PLControlPt |
struct | PLBufferingCB |
struct | PLLabelDefaults |
struct | plf2ops_t |
struct | plbuffer |
Typedefs | |
typedef float | PLFLT |
typedef unsigned int | PLUINT |
typedef int | PLINT |
typedef __int64 | PLINT64 |
typedef PLUINT | PLUNICODE |
typedef PLINT | PLBOOL |
typedef void * | PLPointer |
typedef plf2ops_t * | PLF2OPS |
#define pl_setcontlabelformat c_pl_setcontlabelformat |
#define pl_setcontlabelparam c_pl_setcontlabelparam |
#define plcalc_world c_plcalc_world |
#define plcolorbar c_plcolorbar |
#define plconfigtime c_plconfigtime |
#define plcpstrm c_plcpstrm |
#define plfamadv c_plfamadv |
#define plfontld c_plfontld |
#define plgcmap1_range c_plgcmap1_range |
#define plgcol0a c_plgcol0a |
#define plgcolbg c_plgcolbg |
#define plgcolbga c_plgcolbga |
#define plgcompression c_plgcompression |
#define plgdidev c_plgdidev |
#define plgdiori c_plgdiori |
#define plgdiplt c_plgdiplt |
#define plgdrawmode c_plgdrawmode |
#define plglevel c_plglevel |
#define plgradient c_plgradient |
#define plgriddata c_plgriddata |
#define plhlsrgb c_plhlsrgb |
#define plimagefr c_plimagefr |
#define pllegend c_pllegend |
#define pllightsource c_pllightsource |
#define plmapfill c_plmapfill |
#define plmapline c_plmapline |
#define plmapstring c_plmapstring |
#define plmaptex c_plmaptex |
#define plmeridians c_plmeridians |
#define plmkstrm c_plmkstrm |
#define plot3dcl c_plot3dcl |
#define plparseopts c_plparseopts |
#define plreplot c_plreplot |
#define plrgbhls c_plrgbhls |
#define plscmap0 c_plscmap0 |
#define plscmap0a c_plscmap0a |
#define plscmap0n c_plscmap0n |
#define plscmap1 c_plscmap1 |
#define plscmap1_range c_plscmap1_range |
#define plscmap1a c_plscmap1a |
#define plscmap1l c_plscmap1l |
#define plscmap1la c_plscmap1la |
#define plscmap1n c_plscmap1n |
#define plscol0a c_plscol0a |
#define plscolbg c_plscolbg |
#define plscolbga c_plscolbga |
#define plscolor c_plscolor |
#define plscompression c_plscompression |
#define plsdidev c_plsdidev |
#define plsdimap c_plsdimap |
#define plsdiori c_plsdiori |
#define plsdiplt c_plsdiplt |
#define plsdiplz c_plsdiplz |
#define plsdrawmode c_plsdrawmode |
#define plsetopt c_plsetopt |
#define plshade1 c_plshade1 |
#define plshades c_plshades |
#define plslabelfunc c_plslabelfunc |
#define plspause c_plspause |
#define plstransform c_plstransform |
#define plstring c_plstring |
#define plstring3 c_plstring3 |
#define plstripa c_plstripa |
#define plstripc c_plstripc |
#define plstripd c_plstripd |
#define plsurf3d c_plsurf3d |
#define plsurf3dl c_plsurf3dl |
#define pltimefmt c_pltimefmt |
#define plxormod c_plxormod |
PLDLLIMPEXP void c_pl_setcontlabelformat | ( | PLINT | lexp, |
PLINT | sigdig | ||
) |
PLDLLIMPEXP void c_pladv | ( | PLINT | page | ) |
PLDLLIMPEXP void c_plarc | ( | PLFLT | x, |
PLFLT | y, | ||
PLFLT | a, | ||
PLFLT | b, | ||
PLFLT | angle1, | ||
PLFLT | angle2, | ||
PLFLT | rotate, | ||
PLBOOL | fill | ||
) |
Plot an Arc. Takes the following arguments:
x, y: x and y coordinates for the center of the arc
a, b: Radius of the arc's major and minor axes
angle1: Start angle (degrees)
angle2: End angle (degrees)
fill: Should the arc be filled
x | Center coordinate of the arc in x. |
y | Center coordinate of the arc in y. |
a | Radius of the arcs major axis. |
b | Radius of the arcs minor axis. |
angle1 | Start angle in degrees. |
angle2 | End angle in degrees. |
rotate | How much to rotate the arc? |
fill | Fill the arc. |
PLDLLIMPEXP void c_plbop | ( | void | ) |
Calculate world coordinates wx, and wy from relative device coordinates, rx and ry. Also, return the window index for which the world coordinates are valid. window is set to -1 and wx and wy to 0. if rx and ry do not correspond to valid world coordinates for any currently existing window.
rx | Relative x device coordinates |
ry | Relative y device coordinates |
wx | Pointer to x world coordinate (after call) |
wy | Pointer to y world coordinate (after call) |
window | Pointer index of window for which the world coordinates are valid |
PLDLLIMPEXP void c_plclear | ( | void | ) |
PLDLLIMPEXP void c_plcol0 | ( | PLINT | icol0 | ) |
PLDLLIMPEXP void c_plcol1 | ( | PLFLT | col1 | ) |
PLDLLIMPEXP void c_plcolorbar | ( | PLFLT * | p_colorbar_width, |
PLFLT * | p_colorbar_height, | ||
PLINT | opt, | ||
PLINT | position, | ||
PLFLT | x, | ||
PLFLT | y, | ||
PLFLT | x_length, | ||
PLFLT | y_length, | ||
PLINT | bg_color, | ||
PLINT | bb_color, | ||
PLINT | bb_style, | ||
PLFLT | low_cap_color, | ||
PLFLT | high_cap_color, | ||
PLINT | cont_color, | ||
PLFLT | cont_width, | ||
PLINT | n_labels, | ||
const PLINT * | label_opts, | ||
const char *const * | labels, | ||
PLINT | n_axes, | ||
const char *const * | axis_opts, | ||
const PLFLT * | ticks, | ||
const PLINT * | sub_ticks, | ||
const PLINT * | n_values, | ||
const PLFLT *const * | values | ||
) |
Plot color bar for image, shade or gradient plots.
p_colorbar_width | Pointer to a location which contains (after the call) the labelled and decorated color bar width in adopted coordinates. |
p_colorbar_height | Pointer to a location which contains (after the call) the labelled and decorated color bar height in adopted coordinates. |
opt | This variable contains bits which control the overall color bar. The orientation (direction of the maximum value) of the color bar is specified with PL_COLORBAR_ORIENT_(RIGHT, TOP, LEFT, BOTTOM). If none of these bits are specified, the default orientation is toward the top if the colorbar is placed on the left or right of the viewport or toward the right if the colorbar is placed on the top or bottom of the viewport. If the PL_COLORBAR_BACKGROUND bit is set, plot a (semi-transparent) background for the color bar. If the PL_COLORBAR_BOUNDING_BOX bit is set, plot a bounding box for the color bar. The type of color bar must be specified with one of PL_COLORBAR_IMAGE, PL_COLORBAR_SHADE, or PL_COLORBAR_GRADIENT. If more than one of those bits is set only the first one in the above list is honored. The position of the (optional) label/title can be specified with PL_COLORBAR_LABEL_(RIGHT|TOP|LEFT|BOTTOM). If no label position bit is set then no label will be drawn. If more than one of this list of bits is specified, only the first one on the list is honored. End-caps for the color bar can added with PL_COLORBAR_CAP_LOW and PL_COLORBAR_CAP_HIGH. If a particular color bar cap option is not specified then no cap will be drawn for that end. As a special case for PL_COLORBAR_SHADE, the option PL_COLORBAR_SHADE_LABEL can be specified. If this option is provided then any tick marks and tick labels will be placed at the breaks between shaded segments. TODO: This should be expanded to support custom placement of tick marks and tick labels at custom value locations for any color bar type. |
position | This variable contains bits which control the overall position of the color bar and the definition of the adopted coordinates used for positions just like what is done for the position argument for pllegend. However, note that the defaults for the position bits (see below) are different than the pllegend case. The combination of the PL_POSITION_LEFT, PL_POSITION_RIGHT, PL_POSITION_TOP, PL_POSITION_BOTTOM, PL_POSITION_INSIDE, and PL_POSITION_OUTSIDE bits specifies one of the 16 possible standard positions (the 4 corners and centers of the 4 sides for both the inside and outside cases) of the color bar relative to the adopted coordinate system. The corner positions are specified by the appropriate combination of two of the PL_POSITION_LEFT, PL_POSITION_RIGHT, PL_POSITION_TOP, and PL_POSITION_BOTTOM bits while the sides are specified by a single value of one of those bits. The adopted coordinates are normalized viewport coordinates if the PL_POSITION_VIEWPORT bit is set or normalized subpage coordinates if the PL_POSITION_SUBPAGE bit is set. Default position bits: If none of PL_POSITION_LEFT, PL_POSITION_RIGHT, PL_POSITION_TOP, or PL_POSITION_BOTTOM are set, then use PL_POSITION_RIGHT. If neither of PL_POSITION_INSIDE or PL_POSITION_OUTSIDE is set, use PL_POSITION_OUTSIDE. If neither of PL_POSITION_VIEWPORT or PL_POSITION_SUBPAGE is set, use PL_POSITION_VIEWPORT. |
x | X offset of the color bar position in adopted coordinates from the specified standard position of the color bar. For positive x, the direction of motion away from the standard position is inward/outward from the standard corner positions or standard left or right positions if the PL_POSITION_INSIDE/PL_POSITION_OUTSIDE bit is set in position. For the standard top or bottom positions, the direction of motion for positive x is toward positive X. |
y | Y offset of the color bar position in adopted coordinates from the specified standard position of the color bar. For positive y, the direction of motion away from the standard position is inward/outward from the standard corner positions or standard top or bottom positions if the PL_POSITION_INSIDE/PL_POSITION_OUTSIDE bit is set in position. For the standard left or right positions, the direction of motion for positive y is toward positive Y. |
x_length | Length of the body of the color bar in the X direction in adopted coordinates. |
y_length | Length of the body of the color bar in the Y direction in adopted coordinates. |
bg_color | The cmap0 color of the background for the color bar (PL_COLORBAR_BACKGROUND). |
bb_color | The cmap0 color of the bounding-box line for the color bar (PL_COLORBAR_BOUNDING_BOX). |
bb_style | The pllsty style number for the bounding-box line for the color bar (PL_COLORBAR_BOUNDING_BOX). |
low_cap_color | The cmap1 color of the low-end color bar cap, if it is drawn (PL_COLORBAR_CAP_LOW). |
high_cap_color | The cmap1 color of the high-end color bar cap, if it is drawn (PL_COLORBAR_CAP_HIGH). |
cont_color | The cmap0 contour color for PL_COLORBAR_SHADE plots. This value is passed directly to plshades, so it will be interpreted according to the design of plshades. |
cont_width | Contour width for PL_COLORBAR_SHADE plots. This is passed directly to plshades, so it will be interpreted according to the design of plshades. |
n_labels | Number of labels to place around the color bar. |
label_opts | An array of n_labels opt values to help calculate the combined opt value for each of the labels. For each different label the combined opt value is the bitwise OR of the overall opt value and the relevant label_opts array element. The only bits that are relevant in a combined opt value for a label are PL_COLORBAR_ORIENT_(RIGHT|TOP|LEFT|BOTTOM) and PL_COLORBAR_LABEL_(RIGHT|TOP|LEFT|BOTTOM) (which are documented in the documentation of the overall opt value). |
labels | n_labels text labels for the color bar. No label is drawn if no label position is specified with one of the PL_COLORBAR_LABEL_(RIGHT|TOP|LEFT|BOTTOM) bits in the bitwise OR of the opt value with the relevant label_opts array element. |
n_axes | Number of axis definitions provided. This value must be greater than 0. It is typically 1 (numerical axis labels are provided for one of the long edges of the color bar), but it can be larger if multiple numerical axis labels for the long edges of the color bar are desired. |
axis_opts | An array of n_axes axis options (interpreted as for plbox) for the color bar's axis definitions. |
ticks | An array of n_axes values of the spacing of the major tick marks (interpreted as for plbox) for the color bar's axis definitions. |
sub_ticks | An array of n_axes values of the number of subticks (interpreted as for plbox) for the color bar's axis definitions. |
n_values | An array containing the number of elements in each of the n_axes rows of the two-dimensional values array. |
values | A two-dimensional array containing the numeric values for the data range represented by the color bar. For a row index of i_axis (where 0 < i_axis < n_axes), the number of elements in the row is specified by n_values[i_axis]. For PL_COLORBAR_IMAGE and PL_COLORBAR_GRADIENT the number of elements is 2, and the corresponding row elements of the values array are the minimum and maximum value represented by the colorbar. For PL_COLORBAR_SHADE, the number and values of the elements of a row of the values array is interpreted the same as the nlevel and clevel arguments of plshades. |
Definition at line 1525 of file pllegend.c.
PLDLLIMPEXP void c_plend | ( | void | ) |
PLDLLIMPEXP void c_plend1 | ( | void | ) |
PLDLLIMPEXP void c_pleop | ( | void | ) |
PLDLLIMPEXP void c_plfamadv | ( | void | ) |
PLDLLIMPEXP void c_plfill | ( | PLINT | n, |
const PLFLT * | x, | ||
const PLFLT * | y | ||
) |
PLDLLIMPEXP void c_plflush | ( | void | ) |
PLDLLIMPEXP void c_plfont | ( | PLINT | ifont | ) |
PLDLLIMPEXP void c_plfontld | ( | PLINT | fnt | ) |
PLDLLIMPEXP void c_plgcmap1_range | ( | PLFLT * | min_color, |
PLFLT * | max_color | ||
) |
Returns 8 bit RGB values for given color from color map 0 Values are negative if an invalid color id is given
icol0 | Index of the color to be return (0 - plsc->ncol0). |
r | Current red value of the color. |
g | Current green value of the color. |
b | Current blue value of the color. |
Returns 8 bit RGB values for given color from color map 0 and alpha value Values are negative if an invalid color id is given
icol0 | Index of the color to be return (0 - plsc->ncol0). |
r | Current red value of the color. |
g | Current green value of the color. |
b | Current blue value of the color. |
alpha | Current alpha value of the color. |
PLDLLIMPEXP void c_plgcolbg | ( | PLINT * | r, |
PLINT * | g, | ||
PLINT * | b | ||
) |
Returns the background color (cmap0[0]) by 8 bit RGB value and alpha value
r | Current red value of the background color. |
g | Current green value of the background color. |
b | Current blue value of the background color. |
alpha | Current alpha value of the background color. |
PLDLLIMPEXP void c_plgcompression | ( | PLINT * | compression | ) |
PLDLLIMPEXP void c_plgdev | ( | char * | p_dev | ) |
PLDLLIMPEXP void c_plgdiori | ( | PLFLT * | p_rot | ) |
PLDLLIMPEXP PLINT c_plgdrawmode | ( | void | ) |
PLDLLIMPEXP void c_plgfam | ( | PLINT * | p_fam, |
PLINT * | p_num, | ||
PLINT * | p_bmax | ||
) |
PLDLLIMPEXP void c_plgfci | ( | PLUNICODE * | p_fci | ) |
PLDLLIMPEXP void c_plgfnam | ( | char * | fnam | ) |
PLDLLIMPEXP void c_plgfont | ( | PLINT * | p_family, |
PLINT * | p_style, | ||
PLINT * | p_weight | ||
) |
PLDLLIMPEXP void c_plglevel | ( | PLINT * | p_level | ) |
PLDLLIMPEXP void c_plgra | ( | void | ) |
Definition at line 52 of file plgradient.c.
Get subpage boundaries in absolute coordinates (mm from bottom left-hand corner of page).
xmin | Pointer to PLFLT containing minimum x boundary after call |
xmax | Pointer to PLFLT containing maximum x boundary after call |
ymin | Pointer to PLFLT containing minimum y boundary after call |
ymax | Pointer to PLFLT containing maximum y boundary after call |
PLDLLIMPEXP void c_plgstrm | ( | PLINT * | p_strm | ) |
PLDLLIMPEXP void c_plgver | ( | char * | p_ver | ) |
PLDLLIMPEXP void c_plgxax | ( | PLINT * | p_digmax, |
PLINT * | p_digits | ||
) |
PLDLLIMPEXP void c_plgyax | ( | PLINT * | p_digmax, |
PLINT * | p_digits | ||
) |
PLDLLIMPEXP void c_plgzax | ( | PLINT * | p_digmax, |
PLINT * | p_digits | ||
) |
Convert HLS color to RGB color. Bounds on HLS (input): hue [0., 360.] degrees lightness [0., 1.] magnitude saturation [0., 1.] magnitude
Hue is always mapped onto the interval [0., 360.] regardless of input. Bounds on RGB (output) is always [0., 1.]. Convert to RGB color values by multiplying by 2**nbits (nbits typically 8).
h | hue in HLS color scheme (0.0 - 360.0) |
l | lightness in HLS color scheme (0.0 - 1.0) |
s | saturation in HLS color scheme (0.0 - 1.0) |
p_r | red value of the HLS color |
p_g | green value of the HLS color |
p_b | blue value of the HLS color |
PLDLLIMPEXP void c_plinit | ( | void | ) |
PLDLLIMPEXP void c_pllab | ( | const char * | xlabel, |
const char * | ylabel, | ||
const char * | tlabel | ||
) |
PLDLLIMPEXP void c_pllegend | ( | PLFLT * | p_legend_width, |
PLFLT * | p_legend_height, | ||
PLINT | opt, | ||
PLINT | position, | ||
PLFLT | x, | ||
PLFLT | y, | ||
PLFLT | plot_width, | ||
PLINT | bg_color, | ||
PLINT | bb_color, | ||
PLINT | bb_style, | ||
PLINT | nrow, | ||
PLINT | ncolumn, | ||
PLINT | nlegend, | ||
const PLINT * | opt_array, | ||
PLFLT | text_offset, | ||
PLFLT | text_scale, | ||
PLFLT | text_spacing, | ||
PLFLT | text_justification, | ||
const PLINT * | text_colors, | ||
const char *const * | text, | ||
const PLINT * | box_colors, | ||
const PLINT * | box_patterns, | ||
const PLFLT * | box_scales, | ||
const PLFLT * | box_line_widths, | ||
const PLINT * | line_colors, | ||
const PLINT * | line_styles, | ||
const PLFLT * | line_widths, | ||
const PLINT * | symbol_colors, | ||
const PLFLT * | symbol_scales, | ||
const PLINT * | symbol_numbers, | ||
const char *const * | symbols | ||
) |
Plot legend using discretely annotated filled boxes, lines, and/or lines of symbols.
(N.B. the adopted coordinate system used for some of the parameters is defined in the documentation of the position parameter.)
p_legend_width | Pointer to a location which contains (after the call) the legend width in adopted coordinates. This quantity is calculated from the plot_width and text_offset arguments, the ncolumn argument (possibly modified inside the routine depending on the nlegend and nrow arguments), and the length (calculated internally) of the longest text string. |
p_legend_height | Pointer to a location which contains (after the call) the legend height in adopted coordinates. This quantity is calculated from the text_scale and text_spacing arguments and the nrow argument (possibly modified inside the routine depending on the nlegend and ncolumn arguments). |
opt | This variable contains bits which control the overall legend. If the PL_LEGEND_TEXT_LEFT bit is set, put the text area on the left of the legend and the plotted area on the right. Otherwise, put the text area on the right of the legend and the plotted area on the left. If the PL_LEGEND_BACKGROUND bit is set, plot a (semi-transparent) background for the legend. If the PL_LEGEND_BOUNDING_BOX bit is set, plot a bounding box for the legend. If the PL_LEGEND_ROW_MAJOR bit is set and both (of the possibly internally transformed) nrow > 1 and ncolumn > 1, then plot the resulting array of legend entries in row-major order. Otherwise, plot the legend entries in column-major order. |
position | This variable contains bits which control the overall position of the legend and the definition of the adopted coordinates used for positions just like what is done for the position argument for plcolorbar. However, note that the defaults for the position bits (see below) are different than the plcolorbar case. The combination of the PL_POSITION_LEFT, PL_POSITION_RIGHT, PL_POSITION_TOP, PL_POSITION_BOTTOM, PL_POSITION_INSIDE, and PL_POSITION_OUTSIDE bits specifies one of the 16 possible standard positions (the 4 corners and 4 centers of the sides for both the inside and outside cases) of the legend relative to the adopted coordinate system. The corner positions are specified by the appropriate combination of two of the PL_POSITION_LEFT, PL_POSITION_RIGHT, PL_POSITION_TOP, and PL_POSITION_BOTTOM bits while the sides are specified by a single value of one of those bits. The adopted coordinates are normalized viewport coordinates if the PL_POSITION_VIEWPORT bit is set or normalized subpage coordinates if the PL_POSITION_SUBPAGE bit is set. Default position bits: If none of PL_POSITION_LEFT, PL_POSITION_RIGHT, PL_POSITION_TOP, or PL_POSITION_BOTTOM are set, then the combination of PL_POSITION_RIGHT and PL_POSITION_TOP. If neither of PL_POSITION_INSIDE or PL_POSITION_OUTSIDE is set, use PL_POSITION_INSIDE. If neither of PL_POSITION_VIEWPORT or PL_POSITION_SUBPAGE is set, use PL_POSITION_VIEWPORT. |
x | X offset of the legend position in adopted coordinates from the specified standard position of the legend. For positive x, the direction of motion away from the standard position is inward/outward from the standard corner positions or standard left or right positions if the PL_POSITION_INSIDE/PL_POSITION_OUTSIDE bit is set in position. For the standard top or bottom positions, the direction of motion for positive x is toward positive X. |
y | Y offset of the legend position in adopted coordinates from the specified standard position of the legend. For positive y, the direction of motion away from the standard position is inward/outward from the standard corner positions or standard top or bottom positions if the PL_POSITION_INSIDE/PL_POSITION_OUTSIDE bit is set in position. For the standard left or right positions, the direction of motion for positive y is toward positive Y. |
plot_width | Horizontal width in adopted coordinates of the plot area (where colored boxes, lines, and/or symbols are drawn in the legend). |
bg_color | The cmap0 color of the background for the legend (PL_LEGEND_BACKGROUND). |
bb_color | The cmap0 color of the bounding-box line for the legend (PL_LEGEND_BOUNDING_BOX). |
bb_style | The pllsty style number for the bounding-box line for the legend (PL_LEGEND_BOUNDING_BOX). |
nrow | Number of rows in the matrix used to render the nlegend legend entries. For internal transformations of nrow, see further remarks under nlegend. |
ncolumn | Number of columns in the matrix used to render the nlegend legend entries. For internal transformations of ncolumn, see further remarks under nlegend. |
nlegend | Number of legend entries. The above nrow and ncolumn values are transformed internally to be consistent with nlegend. If either nrow or ncolumn is non-positive it is replaced by 1. If the resulting product of nrow and ncolumn is less than nlegend, the smaller of the two (or nrow, if nrow == ncolumn) is increased so the product is >= nlegend. Thus, for example, the common nrow = 0, ncolumn = 0 case is transformed internally to nrow = nlegend, ncolumn = 1; i.e., the usual case of a legend rendered as a single column. |
opt_array | Array of nlegend values of options to control each individual plotted area corresponding to a legend entry. If the PL_LEGEND_NONE bit is set, then nothing is plotted in the plotted area. If the PL_LEGEND_COLOR_BOX, PL_LEGEND_LINE, and/or PL_LEGEND_SYMBOL bits are set, the plotted area corresponding to a legend entry is specified with a colored box; a line; and/or a line of symbols. |
text_offset | Offset of the text area from the plot area in units of character width. |
text_scale | Character height scale for text annotations. |
text_spacing | Vertical spacing in units of the character height from one legend entry to the next. |
text_justification | Justification parameter used for text justification. The most common values of text_justification are 0., 0.5, or 1. corresponding to a text that is left justified, centred, or right justified within the text area, but other values are allowed as well. |
text_colors | Array of nlegend cmap0 text colors. |
text | Array of nlegend pointers to null-terminated text annotation strings. Like other PLplot strings specified by the user, the string must be UTF-8 (including its ascii subset) and may include any of the PLplot text escapes. |
box_colors | Array of nlegend cmap0 colors for the discrete colored boxes (PL_LEGEND_COLOR_BOX). |
box_patterns | Array of nlegend patterns (plpsty indices) for the discrete colored boxes (PL_LEGEND_COLOR_BOX). |
box_scales | Array of nlegend scales (units of fraction of character height) for the height of the discrete colored boxes (PL_LEGEND_COLOR_BOX). |
box_line_widths | Array of nlegend line widths for the patterns specified by box_patterns (PL_LEGEND_COLOR_BOX). |
line_colors | Array of nlegend cmap0 line colors (PL_LEGEND_LINE). |
line_styles | Array of nlegend line styles (pllsty indices) (PL_LEGEND_LINE). |
line_widths | Array of nlegend line widths (PL_LEGEND_LINE). |
symbol_colors | Array of nlegend cmap0 symbol colors (PL_LEGEND_SYMBOL). |
symbol_scales | Array of nlegend scale values for the symbol height (PL_LEGEND_SYMBOL). |
symbol_numbers | Array of nlegend numbers of symbols to be drawn across the width of the plotted area (PL_LEGEND_SYMBOL). |
symbols | Array of nlegend pointers to null-terminated strings which represent the glyph for the symbol to be plotted (PL_LEGEND_SYMBOL). Like other PLplot strings specified by the user, the string must be UTF-8 (including its ascii subset) and may include any of the PLplot text escapes. |
Definition at line 531 of file pllegend.c.
PLDLLIMPEXP void c_pllightsource | ( | PLFLT | x, |
PLFLT | y, | ||
PLFLT | z | ||
) |
PLDLLIMPEXP void c_plline | ( | PLINT | n, |
const PLFLT * | x, | ||
const PLFLT * | y | ||
) |
PLDLLIMPEXP void c_pllsty | ( | PLINT | lin | ) |
PLDLLIMPEXP void c_plmap | ( | void(*)(PLINT, PLFLT *, PLFLT *) | mapform, |
const char * | name, | ||
PLFLT | minx, | ||
PLFLT | maxx, | ||
PLFLT | miny, | ||
PLFLT | maxy | ||
) |
PLDLLIMPEXP void c_plmapfill | ( | void(*)(PLINT, PLFLT *, PLFLT *) | mapform, |
const char * | name, | ||
PLFLT | minx, | ||
PLFLT | maxx, | ||
PLFLT | miny, | ||
PLFLT | maxy, | ||
const PLINT * | plotentries, | ||
PLINT | nplotentries | ||
) |
PLDLLIMPEXP void c_plmapline | ( | void(*)(PLINT, PLFLT *, PLFLT *) | mapform, |
const char * | name, | ||
PLFLT | minx, | ||
PLFLT | maxx, | ||
PLFLT | miny, | ||
PLFLT | maxy, | ||
const PLINT * | plotentries, | ||
PLINT | nplotentries | ||
) |
PLDLLIMPEXP void c_plmapstring | ( | void(*)(PLINT, PLFLT *, PLFLT *) | mapform, |
const char * | name, | ||
const char * | string, | ||
PLFLT | minx, | ||
PLFLT | maxx, | ||
PLFLT | miny, | ||
PLFLT | maxy, | ||
const PLINT * | plotentries, | ||
PLINT | nplotentries | ||
) |
PLDLLIMPEXP void c_plmaptex | ( | void(*)(PLINT, PLFLT *, PLFLT *) | mapform, |
const char * | name, | ||
PLFLT | dx, | ||
PLFLT | dy, | ||
PLFLT | just, | ||
const char * | text, | ||
PLFLT | minx, | ||
PLFLT | maxx, | ||
PLFLT | miny, | ||
PLFLT | maxy, | ||
PLINT | plotentry | ||
) |
PLDLLIMPEXP void c_plmeridians | ( | void(*)(PLINT, PLFLT *, PLFLT *) | mapform, |
PLFLT | dlong, | ||
PLFLT | dlat, | ||
PLFLT | minlong, | ||
PLFLT | maxlong, | ||
PLFLT | minlat, | ||
PLFLT | maxlat | ||
) |
PLDLLIMPEXP void c_plmkstrm | ( | PLINT * | p_strm | ) |
PLDLLIMPEXP void c_plmtex | ( | const char * | side, |
PLFLT | disp, | ||
PLFLT | pos, | ||
PLFLT | just, | ||
const char * | text | ||
) |
PLDLLIMPEXP void c_plmtex3 | ( | const char * | side, |
PLFLT | disp, | ||
PLFLT | pos, | ||
PLFLT | just, | ||
const char * | text | ||
) |
PLDLLIMPEXP int c_plparseopts | ( | int * | p_argc, |
const char ** | argv, | ||
PLINT | mode | ||
) |
PLDLLIMPEXP void c_plpat | ( | PLINT | nlin, |
const PLINT * | inc, | ||
const PLINT * | del | ||
) |
Plot a glyph at the specified points. (This function is largely superseded by plstring which gives access to many[!] more glyphs.) code=-1 means try to just draw a point. Right now it's just a move and a draw at the same place. Not ideal, since a sufficiently intelligent output device may optimize it away, or there may be faster ways of doing it. This is OK for now, though, and offers a 4X speedup over drawing a Hershey font "point" (which is actually diamond shaped and and therefore takes 4 strokes to draw). If 0 < code < 32, then a useful (but small subset) of Hershey symbols is plotted. If 32 <= code <= 127 the corresponding printable ASCII character is plotted.
n | Number of points in x and y arrays. |
x | Pointer to an array with X coordinates of points. |
y | Pointer to an array with Y coordinates of points. |
code | Hershey symbol code (in "ascii-indexed" form with -1 <= code <= 127) corresponding to a glyph to be plotted at each of the n points. |
PLDLLIMPEXP void c_plpoin3 | ( | PLINT | n, |
const PLFLT * | x, | ||
const PLFLT * | y, | ||
const PLFLT * | z, | ||
PLINT | code | ||
) |
Plot a glyph at the specified 3D points. (This function is largely superseded by plstring3 which gives access to many[!] more glyphs.) Set up the call to this function similar to what is done for plline3. code=-1 means try to just draw a point. Right now it's just a move and a draw at the same place. Not ideal, since a sufficiently intelligent output device may optimize it away, or there may be faster ways of doing it. This is OK for now, though, and offers a 4X speedup over drawing a Hershey font "point" (which is actually diamond shaped and therefore takes 4 strokes to draw). If 0 < code < 32, then a useful (but small subset) of Hershey symbols is plotted. If 32 <= code <= 127 the corresponding printable ASCII character is plotted.
n | Number of points in x, y, and z arrays. |
x | Pointer to an array with X coordinates of points. |
y | Pointer to an array with Y coordinates of points. |
z | Pointer to an array with Z coordinates of points. |
code | Hershey symbol code (in "ascii-indexed" form with -1 <= code <= 127) corresponding to a glyph to be plotted at each of the n points. |
PLDLLIMPEXP void c_plpsty | ( | PLINT | patt | ) |
PLDLLIMPEXP PLFLT c_plrandd | ( | void | ) |
PLDLLIMPEXP void c_plreplot | ( | void | ) |
Convert RGB color to HLS color. Bounds on RGB (input) is always [0., 1.]. Bounds on HLS (output): hue [0., 360.] degrees lightness [0., 1.] magnitude saturation [0., 1.] magnitude
r | red in RGB color scheme (0.0 - 1.0) |
g | green in RGB color scheme (0.0 - 1.0) |
b | blue in RGB color scheme (0.0 - 1.0) |
p_h | hue value of the RGB color. |
p_l | lightness value of the RGB color. |
p_s | saturation value of the RGB color. |
PLDLLIMPEXP void c_plscmap0a | ( | const PLINT * | r, |
const PLINT * | g, | ||
const PLINT * | b, | ||
const PLFLT * | alpha, | ||
PLINT | ncol0 | ||
) |
Set color map 0 colors by 8 bit RGB and alpha value. This sets the entire color map – only as many colors as specified will be allocated.
r | Array of red values. |
g | Array of green values. |
b | Array of blue values. |
alpha | Array of alpha values. |
ncol0 | Total number of RGBA values. |
PLDLLIMPEXP void c_plscmap0n | ( | PLINT | ncol0 | ) |
Set number of colors in cmap 0, (re-)allocate cmap 0, and fill with default values for those colors not previously allocated (and less than index 15, after that you just get grey).
The driver is not guaranteed to support all of these.
ncol0 | Total number of colors. |
PLDLLIMPEXP void c_plscmap1_range | ( | PLFLT | min_color, |
PLFLT | max_color | ||
) |
Set the color map 1 value range to use in continuous color plots.
min_color | Specifies the minimum color to use. A value of 0.0 or less indicates that the range should start at the lowest color map 1 value available. |
max_color | Specifies the maximum color to use. A value of 1.0 or greater indicates that the range should exten to the highest color map 1 value available. |
If min_color > max_color or min_color is greater than 1.0 or max_color is less than 0.0 then no change is made.
PLDLLIMPEXP void c_plscmap1l | ( | PLINT | itype, |
PLINT | npts, | ||
const PLFLT * | intensity, | ||
const PLFLT * | coord1, | ||
const PLFLT * | coord2, | ||
const PLFLT * | coord3, | ||
const PLINT * | alt_hue_path | ||
) |
Set color map 1 colors using a piece-wise linear relationship between position in the color map (from 0 to 1) and position in HLS or RGB color space. May be called at any time.
The idea here is to specify a number of control points that specify the mapping between HLS (or RGB or CMY) and palette 1 value. Between these points, linear interpolation is used. By mapping position in the color map to function value, this gives a smooth variation of color with intensity. Any number of control points may be specified, located at arbitrary positions (intensities), although typically 2 - 4 are enough. Another way of stating this is that we are traversing a given number of lines through HLS (or RGB) space as we move through cmap 1 entries. The control points at the minimum and maximum intensity (0 and 1) must always be specified. By adding more control points you can get more variation. One good technique for plotting functions that vary about some expected average is to use an additional 2 control points in the center (intensity ~= 0.5) that are the same color as the background (typically white for paper output, black for crt), and same hue as the boundary control points. This allows the highs and lows to be very easily distinguished.
Each control point must specify the position in cmap 1 as well as three coordinates in HLS or RGB space. The first point MUST correspond to position = 0, and the last to position = 1.
Every change in hue from one control point to the next can be linearly interpolated in two ways. The usual (alt_hue_path[i] false) method for the ith interval uses the dh = h[i+1] - h[i] interval for interpolation. The alternate (alt_hue_path true) method for the ith interval uses the dh = (h[i+1] - h[i]) - 360 if (h[i+1] - h[i]) is positive or dh = 360 - (h[i+1] - h[i]) if (h[i+1] - h[i]) is negative interval for the interpolation. Thus, alt_hue_path true interpolation intervals always include hue = 0. Specifying alt_hue_path=NULL is equivalent to setting alt_hue_path[]=false for every control point.
Bounds on RGB coordinates: R,G,B [0, 1] magnitude
Bounds on HLS coordinates: hue [0, 360] degrees lightness [0, 1] magnitude saturation [0, 1] magnitude
The inputs are:
itype | 0: HLS, 1: RGB |
npts | number of control points |
intensity[] | intensity index for each control point |
coord1[] | first coordinate for each control point |
coord2[] | second coordinate for each control point |
coord3[] | third coordinate for each control point |
alt_hue_path[] | if true, use alternative hue interpolation path for the associated interval. |
PLDLLIMPEXP void c_plscmap1la | ( | PLINT | itype, |
PLINT | npts, | ||
const PLFLT * | intensity, | ||
const PLFLT * | coord1, | ||
const PLFLT * | coord2, | ||
const PLFLT * | coord3, | ||
const PLFLT * | alpha, | ||
const PLINT * | alt_hue_path | ||
) |
This is the same as plscmap1l, but also allows alpha value interpolation.
itype | 0: HLS, 1: RGB |
npts | number of control points |
intensity[] | intensity index for each control point |
coord1[] | first coordinate for each control point |
coord2[] | second coordinate for each control point |
coord3[] | third coordinate for each control point |
alpha[] | alpha value for each control point |
alt_hue_path[] | if true, use alternative hue interpolation path for the associated interval. |
PLDLLIMPEXP void c_plscmap1n | ( | PLINT | ncol1 | ) |
Set number of colors in cmap 1, (re-)allocate cmap 1, and set default values if this is the first allocation.
Note that the driver is allowed to disregard this number. In particular, most use fewer than we use internally.
ncol1 | The number of colors in cmap1. |
Set a given color from color map 0 by 8 bit RGB value Does not result in any additional cells to be allocated.
icol0 | index of the color to set (0 - plsc->ncol0) |
r | Red value of the color (0 - 255). |
g | Green value of the color (0 - 255). |
b | Blue value of the color (0 - 255). |
Set a given color from color map 0 by 8 bit RGB value and alpha value. Does not result in any additional cells to be allocated.
icol0 | index of the color to set (0 - plsc->ncol0) |
r | Red value of the color (0 - 255). |
g | Green value of the color (0 - 255). |
b | Blue value of the color (0 - 255). |
alpha | Alpha value of the color (0.0 - 1.0). |
PLDLLIMPEXP void c_plscolbg | ( | PLINT | r, |
PLINT | g, | ||
PLINT | b | ||
) |
Set the background color (cmap0[0]) by 8 bit RGB value and alpha value
r | Red value of the background color (0 - 255). |
g | Green value of the background color (0 - 255). |
b | Blue value of the background color (0 - 255). |
alpha | Alpha (transparency) value of the background color (0.0 - 1.0). |
PLDLLIMPEXP void c_plscolor | ( | PLINT | color | ) |
PLDLLIMPEXP void c_plscompression | ( | PLINT | compression | ) |
PLDLLIMPEXP void c_plsdev | ( | const char * | devname | ) |
PLDLLIMPEXP void c_plsdiori | ( | PLFLT | rot | ) |
PLDLLIMPEXP void c_plsdrawmode | ( | PLINT | mode | ) |
PLDLLIMPEXP void c_plseed | ( | unsigned int | seed | ) |
PLDLLIMPEXP void c_plsesc | ( | char | esc | ) |
PLDLLIMPEXP int c_plsetopt | ( | const char * | opt, |
const char * | optarg | ||
) |
PLDLLIMPEXP void c_plsfam | ( | PLINT | fam, |
PLINT | num, | ||
PLINT | bmax | ||
) |
PLDLLIMPEXP void c_plsfci | ( | PLUNICODE | fci | ) |
PLDLLIMPEXP void c_plsfnam | ( | const char * | fnam | ) |
PLDLLIMPEXP void c_plsfont | ( | PLINT | family, |
PLINT | style, | ||
PLINT | weight | ||
) |
PLDLLIMPEXP void c_plshade | ( | const PLFLT *const * | a, |
PLINT | nx, | ||
PLINT | ny, | ||
PLINT(*)(PLFLT, PLFLT) | defined, | ||
PLFLT | xmin, | ||
PLFLT | xmax, | ||
PLFLT | ymin, | ||
PLFLT | ymax, | ||
PLFLT | shade_min, | ||
PLFLT | shade_max, | ||
PLINT | sh_cmap, | ||
PLFLT | sh_color, | ||
PLFLT | sh_width, | ||
PLINT | min_color, | ||
PLFLT | min_width, | ||
PLINT | max_color, | ||
PLFLT | max_width, | ||
void(*)(PLINT, const PLFLT *, const PLFLT *) | fill, | ||
PLBOOL | rectangular, | ||
void(*)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) | pltr, | ||
PLPointer | pltr_data | ||
) |
PLDLLIMPEXP void c_plshade1 | ( | const PLFLT * | a, |
PLINT | nx, | ||
PLINT | ny, | ||
PLINT(*)(PLFLT, PLFLT) | defined, | ||
PLFLT | xmin, | ||
PLFLT | xmax, | ||
PLFLT | ymin, | ||
PLFLT | ymax, | ||
PLFLT | shade_min, | ||
PLFLT | shade_max, | ||
PLINT | sh_cmap, | ||
PLFLT | sh_color, | ||
PLFLT | sh_width, | ||
PLINT | min_color, | ||
PLFLT | min_width, | ||
PLINT | max_color, | ||
PLFLT | max_width, | ||
void(*)(const PLINT, const PLFLT *, const PLFLT *) | fill, | ||
PLBOOL | rectangular, | ||
void(*)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) | pltr, | ||
PLPointer | pltr_data | ||
) |
PLDLLIMPEXP void c_plshades | ( | const PLFLT *const * | a, |
PLINT | nx, | ||
PLINT | ny, | ||
PLINT(*)(PLFLT, PLFLT) | defined, | ||
PLFLT | xmin, | ||
PLFLT | xmax, | ||
PLFLT | ymin, | ||
PLFLT | ymax, | ||
const PLFLT * | clevel, | ||
PLINT | nlevel, | ||
PLFLT | fill_width, | ||
PLINT | cont_color, | ||
PLFLT | cont_width, | ||
void(*)(PLINT, const PLFLT *, const PLFLT *) | fill, | ||
PLBOOL | rectangular, | ||
void(*)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) | pltr, | ||
PLPointer | pltr_data | ||
) |
PLDLLIMPEXP void c_plsmem | ( | PLINT | maxx, |
PLINT | maxy, | ||
void * | plotmem | ||
) |
PLDLLIMPEXP void c_plsmema | ( | PLINT | maxx, |
PLINT | maxy, | ||
void * | plotmem | ||
) |
PLDLLIMPEXP void c_plsori | ( | PLINT | ori | ) |
PLDLLIMPEXP void c_plspal0 | ( | const char * | filename | ) |
PLDLLIMPEXP void c_plspal1 | ( | const char * | filename, |
PLBOOL | interpolate | ||
) |
PLDLLIMPEXP void c_plspause | ( | PLBOOL | pause | ) |
PLDLLIMPEXP void c_plsstrm | ( | PLINT | strm | ) |
PLDLLIMPEXP void c_plstart | ( | const char * | devname, |
PLINT | nx, | ||
PLINT | ny | ||
) |
PLDLLIMPEXP void c_plstring | ( | PLINT | n, |
const PLFLT * | x, | ||
const PLFLT * | y, | ||
const char * | string | ||
) |
Plot a glyph at the specified points. (This function largely supersedes plpoin and plsym because many[!] more glyphs are accessible with plstring.) The glyph is specified with a PLplot user string. Note that the user string is not actually limited to one glyph so it is possible (but not normally useful) to plot more than one glyph at the specified points with this function. As with plmtex and plptex, the user string can contain FCI escapes to determine the font, UTF-8 code to determine the glyph or else PLplot escapes for Hershey or unicode text to determine the glyph.
n | Number of points in x and y arrays. |
x | Array of X coordinates of points. |
y | Array of Y coordinates of points. |
string | PLplot user string corresponding to the glyph to be plotted at each of the n points. |
PLDLLIMPEXP void c_plstring3 | ( | PLINT | n, |
const PLFLT * | x, | ||
const PLFLT * | y, | ||
const PLFLT * | z, | ||
const char * | string | ||
) |
Plot a glyph at the specified 3D points. (This function largely supersedes plpoin3 because many[!] more glyphs are accessible with plstring3). Set up the call to this function similar to what is done for plline3. The glyph is specified with a PLplot user string. Note that the user string is not actually limited to one glyph so it is possible (but not normally useful) to plot more than one glyph at the specified points with this function. As with plmtex and plptex, the user string can contain FCI escapes to determine the font, UTF-8 code to determine the glyph or else PLplot escapes for Hershey or unicode text to determine the glyph.
n | Number of points in x, y, and z arrays. |
x | Array of X coordinates of points. |
y | Array of Y coordinates of points. |
z | Array of Z coordinates of points. |
string | PLplot user string corresponding to the glyph to be plotted at each of the n points. |
Definition at line 221 of file plstripc.c.
PLDLLIMPEXP void c_plstripc | ( | PLINT * | id, |
const char * | xspec, | ||
const char * | yspec, | ||
PLFLT | xmin, | ||
PLFLT | xmax, | ||
PLFLT | xjump, | ||
PLFLT | ymin, | ||
PLFLT | ymax, | ||
PLFLT | xlpos, | ||
PLFLT | ylpos, | ||
PLBOOL | y_ascl, | ||
PLBOOL | acc, | ||
PLINT | colbox, | ||
PLINT | collab, | ||
const PLINT | colline[], | ||
const PLINT | styline[], | ||
const char * | legline[], | ||
const char * | labx, | ||
const char * | laby, | ||
const char * | labtop | ||
) |
PLDLLIMPEXP void c_plstripd | ( | PLINT | id | ) |
Definition at line 327 of file plstripc.c.
PLDLLIMPEXP void c_plstyl | ( | PLINT | nms, |
const PLINT * | mark, | ||
const PLINT * | space | ||
) |
Plot a glyph at the specified points. (This function is largely superseded by plstring which gives access to many[!] more glyphs.)
n | Number of points in x and y arrays. |
x | Pointer to an array with X coordinates of points. |
y | Pointer to an array with Y coordinates of points. |
code | Hershey symbol code corresponding to a glyph to be plotted at each of the n points. |
PLDLLIMPEXP void c_pltext | ( | void | ) |
PLDLLIMPEXP void c_pltimefmt | ( | const char * | fmt | ) |
PLDLLIMPEXP void c_plvasp | ( | PLFLT | aspect | ) |
PLDLLIMPEXP void c_plvsta | ( | void | ) |
PLDLLIMPEXP void c_plwidth | ( | PLFLT | width | ) |
PLDLLIMPEXP void c_plxormod | ( | PLINT | mode, |
PLINT * | status | ||
) |
PLDLLIMPEXP void pl_cmd | ( | PLINT | op, |
void * | ptr | ||
) |
PLDLLIMPEXP void plAlloc2dGrid | ( | PLFLT *** | f, |
PLINT | nx, | ||
PLINT | ny | ||
) |
Allocates a block of memory for use as a 2-d grid of PLFLT's. Resulting array can be indexed as f[i][j] anywhere. This is to be used instead of PLFLT f[nx][ny], which is less useful. Note that this type of allocation is required by the PLplot functions which take a 2-d grids of PLFLT's as an argument, such as plcont() and plot3d(). Example usage:
PLFLT **z;
Alloc2dGrid(&z, XPTS, YPTS);
f | Location of the storage (address of a **). |
nx | Size of the grid in x. |
ny | Size of the grid in y. |
PLDLLIMPEXP void plClearOpts | ( | void | ) |
PLDLLIMPEXP PLFLT plf2eval | ( | PLINT | ix, |
PLINT | iy, | ||
PLPointer | plf2eval_data | ||
) |
PLDLLIMPEXP PLFLT plf2eval1 | ( | PLINT | ix, |
PLINT | iy, | ||
PLPointer | plf2eval_data | ||
) |
PLDLLIMPEXP PLFLT plf2eval2 | ( | PLINT | ix, |
PLINT | iy, | ||
PLPointer | plf2eval_data | ||
) |
PLDLLIMPEXP PLFLT plf2evalr | ( | PLINT | ix, |
PLINT | iy, | ||
PLPointer | plf2eval_data | ||
) |
PLDLLIMPEXP PLF2OPS plf2ops_c | ( | void | ) |
PLDLLIMPEXP PLF2OPS plf2ops_grid_c | ( | void | ) |
PLDLLIMPEXP PLF2OPS plf2ops_grid_col_major | ( | void | ) |
PLDLLIMPEXP PLF2OPS plf2ops_grid_row_major | ( | void | ) |
PLDLLIMPEXP char* plFindCommand | ( | const char * | fn | ) |
Looks for the specified executable file. Search path: if command invoked in the build tree: build_tree/tk (plserver lies there - needed for the tk driver) source_tree/scripts (plpr lies there - needed for the tk driver) else PLPLOT_BIN_ENV = current directory PLPLOT_HOME_ENV/bin = /bin BIN_DIR
The caller must free the returned pointer (points to malloc'ed memory) when finished with it.
fn | Name of the executable(?). |
PLDLLIMPEXP int plFindName | ( | char * | p | ) |
Authors: Paul Dubois (LLNL), others? This function is in the public domain.
Given a pathname, determine if it is a symbolic link. If so, continue searching to the ultimate terminus - there may be more than one link. Use the error value to determine when the terminus is reached, and to determine if the pathname really exists. Then stat it to determine whether it's executable. Return 0 for an executable, errno otherwise. Note that 'p' must have at least one '/' character - it does by construction in this program. The contents of the array pointed to by 'p' are changed to the actual pathname if findname is successful.
This function is only defined under Unix for now.
p | Name of the executable to find. |
PLDLLIMPEXP void plfplot3dcl | ( | const PLFLT * | x, |
const PLFLT * | y, | ||
PLF2OPS | zops, | ||
PLPointer | zp, | ||
PLINT | nx, | ||
PLINT | ny, | ||
PLINT | opt, | ||
const PLFLT * | clevel, | ||
PLINT | nlevel, | ||
PLINT | indexxmin, | ||
PLINT | indexxmax, | ||
const PLINT * | indexymin, | ||
const PLINT * | indexymax | ||
) |
PLDLLIMPEXP void plFree2dGrid | ( | PLFLT ** | f, |
PLINT | nx, | ||
PLINT | ny | ||
) |
PLDLLIMPEXP void plfshade | ( | PLFLT(*)(PLINT, PLINT, PLPointer) | f2eval, |
PLPointer | f2eval_data, | ||
PLFLT(*)(PLINT, PLINT, PLPointer) | c2eval, | ||
PLPointer | c2eval_data, | ||
PLINT | nx, | ||
PLINT | ny, | ||
PLFLT | left, | ||
PLFLT | right, | ||
PLFLT | bottom, | ||
PLFLT | top, | ||
PLFLT | shade_min, | ||
PLFLT | shade_max, | ||
PLINT | sh_cmap, | ||
PLFLT | sh_color, | ||
PLFLT | sh_width, | ||
PLINT | min_color, | ||
PLFLT | min_width, | ||
PLINT | max_color, | ||
PLFLT | max_width, | ||
void(*)(PLINT, const PLFLT *, const PLFLT *) | fill, | ||
PLBOOL | rectangular, | ||
void(*)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) | pltr, | ||
PLPointer | pltr_data | ||
) |
PLDLLIMPEXP void plfshade1 | ( | PLF2OPS | zops, |
PLPointer | zp, | ||
PLINT | nx, | ||
PLINT | ny, | ||
PLINT(*)(PLFLT, PLFLT) | defined, | ||
PLFLT | xmin, | ||
PLFLT | xmax, | ||
PLFLT | ymin, | ||
PLFLT | ymax, | ||
PLFLT | shade_min, | ||
PLFLT | shade_max, | ||
PLINT | sh_cmap, | ||
PLFLT | sh_color, | ||
PLFLT | sh_width, | ||
PLINT | min_color, | ||
PLFLT | min_width, | ||
PLINT | max_color, | ||
PLFLT | max_width, | ||
void(*)(PLINT, const PLFLT *, const PLFLT *) | fill, | ||
PLINT | rectangular, | ||
void(*)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) | pltr, | ||
PLPointer | pltr_data | ||
) |
PLDLLIMPEXP void plfshades | ( | PLF2OPS | zops, |
PLPointer | zp, | ||
PLINT | nx, | ||
PLINT | ny, | ||
PLINT(*)(PLFLT, PLFLT) | defined, | ||
PLFLT | xmin, | ||
PLFLT | xmax, | ||
PLFLT | ymin, | ||
PLFLT | ymax, | ||
const PLFLT * | clevel, | ||
PLINT | nlevel, | ||
PLFLT | fill_width, | ||
PLINT | cont_color, | ||
PLFLT | cont_width, | ||
void(*)(PLINT, const PLFLT *, const PLFLT *) | fill, | ||
PLINT | rectangular, | ||
void(*)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer) | pltr, | ||
PLPointer | pltr_data | ||
) |
PLDLLIMPEXP void plgDevs | ( | const char *** | p_menustr, |
const char *** | p_devname, | ||
int * | p_ndev | ||
) |
PLDLLIMPEXP void plgesc | ( | char * | p_esc | ) |
PLDLLIMPEXP int plGetCursor | ( | PLGraphicsIn * | plg | ) |
Wait for graphics input event and translate to world coordinates.
plg | Pointer to PLGraphicsIn |
PLDLLIMPEXP PLFLT plGetFlt | ( | const char * | s | ) |
PLDLLIMPEXP PLINT plGetInt | ( | const char * | s | ) |
PLDLLIMPEXP void plGetName | ( | const char * | dir, |
const char * | subdir, | ||
const char * | filename, | ||
char ** | filespec | ||
) |
Gets search name for file by concatenating the dir, subdir, and file name, allocating memory as needed. The appropriate delimiter is added after the dir specification as necessary. The caller is responsible for freeing the malloc'ed memory.
dir | The directory name. |
subdir | The sub-directory name. |
filename | The file name. |
filespec | The result of concatenating dir, subdir and filename. |
PLDLLIMPEXP void plgfile | ( | FILE ** | p_file | ) |
PLDLLIMPEXP void plgFileDevs | ( | const char *** | p_menustr, |
const char *** | p_devname, | ||
int * | p_ndev | ||
) |
PLDLLIMPEXP int plMergeOpts | ( | PLOptionTable * | options, |
const char * | name, | ||
const char ** | notes | ||
) |
PLDLLIMPEXP void plMinMax2dGrid | ( | const PLFLT *const * | f, |
PLINT | nx, | ||
PLINT | ny, | ||
PLFLT * | fnmax, | ||
PLFLT * | fnmin | ||
) |
Finds the maximum and minimum of a 2d matrix allocated with plAllc2dGrid(). NaN and +/- infinity values are ignored.
param f 2d matrix pointer. param nx Size of the grid in x. param ny Size of the grid in y. param fnmax Maximum value in the matrix. param fnmin Minimum value in the matrix.
PLDLLIMPEXP void plOptUsage | ( | void | ) |
PLDLLIMPEXP void plResetOpts | ( | void | ) |
PLDLLIMPEXP void plsabort | ( | void(*)(const char *) | handler | ) |
PLDLLIMPEXP void plsbopH | ( | void(*)(void *, int *) | handler, |
void * | handler_data | ||
) |
PLDLLIMPEXP void plsButtonEH | ( | void(*)(PLGraphicsIn *, void *, int *) | ButtonEH, |
void * | ButtonEH_data | ||
) |
PLDLLIMPEXP void plsdevdata | ( | void * | data | ) |
PLDLLIMPEXP void plseopH | ( | void(*)(void *, int *) | handler, |
void * | handler_data | ||
) |
PLDLLIMPEXP void plsError | ( | PLINT * | errcode, |
char * | errmsg | ||
) |
PLDLLIMPEXP void plSetUsage | ( | const char * | program_string, |
const char * | usage_string | ||
) |
PLDLLIMPEXP void plsexit | ( | int(*)(const char *) | handler | ) |
PLDLLIMPEXP void plsfile | ( | FILE * | file | ) |
PLDLLIMPEXP void plsKeyEH | ( | void(*)(PLGraphicsIn *, void *, int *) | KeyEH, |
void * | KeyEH_data | ||
) |
PLDLLIMPEXP void plsxwin | ( | PLINT | window_id | ) |
PLDLLIMPEXP int plTranslateCursor | ( | PLGraphicsIn * | plg | ) |
Translates cursor position from relative device coordinates to world coordinates.
plg | Pointer to PLGraphicsIn |