34 #ifdef PL_USE_NAMESPACE
50 xf.
xform( ox, oy, *nx, *ny );
84 PLFLT xll, xlr, xrl, xrr;
85 PLFLT yll, ylr, yrl, yrr;
101 if ( x < xmin || x > xmax || y < ymin || y > ymax )
103 cerr <<
"cxx_pltr2::xform, Invalid coordinates\n";
114 tx =
xg( 0, ny - 1 );
115 ty =
yg( 0, ny - 1 );
124 tx = xll * ( 1 - dv ) + xlr * ( dv );
125 ty = yll * ( 1 - dv ) + ylr * ( dv );
132 tx =
xg( nx - 1, 0 );
133 ty =
yg( nx - 1, 0 );
137 tx =
xg( nx - 1, ny - 1 );
138 ty =
yg( nx - 1, ny - 1 );
142 xll =
xg( nx - 1, vl );
143 yll =
yg( nx - 1, vl );
144 xlr =
xg( nx - 1, vr );
145 ylr =
yg( nx - 1, vr );
147 tx = xll * ( 1 - dv ) + xlr * ( dv );
148 ty = yll * ( 1 - dv ) + ylr * ( dv );
160 tx = xll * ( 1 - du ) + xrl * ( du );
161 ty = yll * ( 1 - du ) + yrl * ( du );
165 xlr =
xg( ul, ny - 1 );
166 xrr =
xg( ur, ny - 1 );
167 ylr =
yg( ul, ny - 1 );
168 yrr =
yg( ur, ny - 1 );
170 tx = xlr * ( 1 - du ) + xrr * ( du );
171 ty = ylr * ( 1 - du ) + yrr * ( du );
188 if ( ur == nx && vr < ny )
193 tx = xll * ( 1 - dv ) + xlr * ( dv );
194 ty = yll * ( 1 - dv ) + ylr * ( dv );
199 else if ( ur < nx && vr == ny )
204 tx = xll * ( 1 - du ) + xrl * ( du );
205 ty = yll * ( 1 - du ) + yrl * ( du );
210 else if ( ur == nx && vr == ny )
228 tx = xll * ( 1 - du ) * ( 1 - dv ) + xlr * ( 1 - du ) * ( dv ) +
229 xrl * ( du ) * ( 1 - dv ) + xrr * ( du ) * ( dv );
231 ty = yll * ( 1 - du ) * ( 1 - dv ) + ylr * ( 1 - du ) * ( dv ) +
232 yrl * ( du ) * ( 1 - dv ) + yrr * ( du ) * ( dv );
283 const char *driver,
const char *file )
308 #define BONZAI { throw "plstream method not implemented."; }
328 plarc( x, y, a, b, angle1, angle2, rotate, fill );
338 plvect( u, v, nx, ny, scale,
pltr, pltr_data );
367 plaxes( x0, y0, xopt, xtick, nxsub, yopt, ytick, nysub );
376 plbin( nbin, x, y, center );
395 plbox( xopt, xtick, nxsub, yopt, ytick, nysub );
403 const char *yopt,
const char *ylabel,
PLFLT ytick,
PLINT nsuby,
404 const char *zopt,
const char *zlabel,
PLFLT ztick,
PLINT nsubz )
408 plbox3( xopt, xlabel, xtick, nsubx,
409 yopt, ylabel, ytick, nsuby,
410 zopt, zlabel, ztick, nsubz );
419 plbtime( &year, &month, &day, &hour, &min, &sec, ctime );
474 "plstream::col(PLFLT c) : function deprecated. Use plstream::col1(PLFLT c) instead"
489 plconfigtime( scale, offset1, offset2, ccontrol, ifbtime_offset, year,
490 month, day, hour, min, sec );
505 plcont( f, nx, ny, kx, lx, ky, ly, clevel, nlevel,
523 nx, ny, kx, lx, ky, ly, clevel, nlevel,
550 plctime( year, month, day, hour, min, sec, &ctime );
560 pldid2pc( &xmin, &ymin, &xmax, &ymax );
570 pldip2dc( &xmin, &ymin, &xmax, &ymax );
601 plenv( xmin, xmax, ymin, ymax, just, axis );
612 plenv0( xmin, xmax, ymin, ymax, just, axis );
630 plerrx( n, xmin, xmax, y );
639 plerry( n, x, ymin, ymax );
756 plgdidev( &mar, &aspect, &jx, &jy );
774 plgdiplt( &xmin, &ymin, &xmax, &ymax );
792 plgfam( &fam, &num, &bmax );
810 plgfont( &family, &style, &weight );
829 plgpage( &xp, &yp, &xleng, &yleng, &xoff, &yoff );
858 plgriddata( x, y, z, npts, xg, nptsx, yg, nptsy, zg, type, data );
867 plgspa( &xmin, &xmax, &ymin, &ymax );
896 plgvpd( &xmin, &xmax, &ymin, &ymax );
905 plgvpw( &xmin, &xmax, &ymin, &ymax );
914 plgxax( &digmax, &digits );
923 plgyax( &digmax, &digits );
932 plgzax( &digmax, &digits );
942 plhist( n, data, datmin, datmax, nbin, oldwin );
954 #endif // PL_DEPRECATED
986 pllab( xlabel, ylabel, tlabel );
997 PLFLT text_justification,
998 const PLINT *text_colors,
const char *
const *
text,
999 const PLINT *box_colors,
const PLINT *box_patterns,
1000 const PLFLT *box_scales,
const PLFLT *box_line_widths,
1001 const PLINT *line_colors,
const PLINT *line_styles,
1002 const PLFLT *line_widths,
1003 const PLINT *symbol_colors,
const PLFLT *symbol_scales,
1004 const PLINT *symbol_numbers,
const char *
const *symbols )
1008 pllegend( p_legend_width, p_legend_height, opt, position, x, y, plot_width,
1009 bg_color, bb_color, bb_style, nrow, ncolumn, nlegend, opt_array,
1010 text_offset, text_scale, text_spacing, text_justification,
1011 text_colors, text, box_colors, box_patterns, box_scales,
1012 box_line_widths, line_colors, line_styles, line_widths,
1013 symbol_colors, symbol_scales, symbol_numbers, symbols );
1029 plcolorbar( p_colorbar_width, p_colorbar_height, opt, position, x, y,
1030 x_length, y_length, bg_color, bb_color, bb_style,
1031 low_cap_color, high_cap_color, cont_color, cont_width,
1032 n_labels, label_opts, label, n_axes, axis_opts,
1033 ticks, sub_ticks, n_values, values );
1076 const char *type,
PLFLT minlong,
PLFLT maxlong,
1081 plmap(
mapform, type, minlong, maxlong, minlat, maxlat );
1104 plmesh( x, y, z, nx, ny, opt );
1114 plmeshc( x, y, z, nx, ny, opt, clevel, nlevel );
1133 plmtex( side, disp, pos, just, text );
1143 plmtex3( side, disp, pos, just, text );
1154 plsurf3d( x, y, z, nx, ny, opt, clevel, nlevel );
1164 const PLINT *indexymin,
const PLINT *indexymax )
1168 plsurf3dl( x, y, z, nx, ny, opt, clevel, nlevel, ixstart, ixn,
1169 indexymin, indexymax );
1199 ::plot3dc( x, y, z, nx, ny, opt, clevel, nlevel );
1209 const PLINT *indexymin,
const PLINT *indexymax )
1213 ::plot3dcl( x, y, z, nx, ny, opt, clevel, nlevel, ixstart, ixn,
1214 indexymin, indexymax );
1232 plpat( nlin, inc, del );
1241 plpath( n, x1, y1, x2, y2 );
1265 const bool *draw,
bool ifcc )
1268 for (
int i = 0; i < n - 1; i++ )
1270 loc_draw[i] = (
PLBOOL) draw[i];
1285 for (
int i = 0; i < n - 1; i++ )
1287 loc_draw[i] = (
PLBOOL) draw[i];
1322 plptex( x, y, dx, dy, just, text );
1334 plptex3( wx, wy, wz, dx, dy, dz, sx, sy, sz, just, text );
1348 #ifdef PL_DEPRECATED
1355 #endif // PL_DEPRECATED
1359 #ifdef PL_DEPRECATED
1366 #endif // PL_DEPRECATED
1454 const bool *alt_hue_path )
1456 PLBOOL *loc_alt_hue_path = NULL;
1457 if ( alt_hue_path != NULL )
1459 loc_alt_hue_path =
new PLBOOL[npts - 1];
1460 for (
int i = 0; i < npts - 1; i++ )
1462 loc_alt_hue_path[i] = (
PLBOOL) alt_hue_path[i];
1468 plscmap1l( (
PLBOOL) itype, npts, intensity, coord1, coord2, coord3, loc_alt_hue_path );
1470 if ( loc_alt_hue_path != NULL )
1471 delete [] loc_alt_hue_path;
1480 const PLFLT *a,
const bool *alt_hue_path )
1482 PLBOOL *loc_alt_hue_path = NULL;
1483 if ( alt_hue_path != NULL )
1485 loc_alt_hue_path =
new PLBOOL[npts - 1];
1486 for (
int i = 0; i < npts - 1; i++ )
1488 loc_alt_hue_path[i] = (
PLBOOL) alt_hue_path[i];
1495 a, loc_alt_hue_path );
1497 if ( loc_alt_hue_path != NULL )
1498 delete [] loc_alt_hue_path;
1514 const PLINT *alt_hue_path )
1516 PLBOOL *loc_alt_hue_path = NULL;
1517 if ( alt_hue_path != NULL )
1519 loc_alt_hue_path =
new PLBOOL[npts - 1];
1520 for (
int i = 0; i < npts - 1; i++ )
1522 loc_alt_hue_path[i] = (
PLBOOL) alt_hue_path[i];
1528 plscmap1l( (
PLBOOL) itype, npts, intensity, coord1, coord2, coord3, loc_alt_hue_path );
1530 if ( loc_alt_hue_path != NULL )
1531 delete [] loc_alt_hue_path;
1624 plsdimap( dimxmin, dimxmax, dimymin, dimymax, dimxpmm, dimypmm );
1642 plsdiplt( xmin, ymin, xmax, ymax );
1651 plsdiplz( xmin, ymin, xmax, ymax );
1688 plsfam( fam, num, bmax );
1715 plsfont( family, style, weight );
1728 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1734 plshade( a, nx, ny, defined, left, right, bottom, top,
1735 shade_min, shade_max,
1736 sh_cmap, sh_color, sh_width,
1737 min_color, min_width, max_color, max_width,
1756 plshade( a, nx, ny, defined, left, right, bottom, top,
1757 shade_min, shade_max,
1758 sh_cmap, sh_color, sh_width,
1759 min_color, min_width, max_color, max_width,
1769 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1775 plshades( a, nx, ny, defined, xmin, xmax, ymin, ymax,
1776 clevel, nlevel, fill_width, cont_color, cont_width,
1793 plshades( a, nx, ny, defined, xmin, xmax, ymin, ymax,
1794 clevel, nlevel, fill_width, cont_color, cont_width,
1816 xmin, xmax, ymin, ymax, shade_min, shade_max,
1817 sh_cmap, sh_color, sh_width,
1818 min_color, min_width, max_color, max_width,
1825 xmin, xmax, ymin, ymax, shade_min, shade_max,
1826 sh_cmap, sh_color, sh_width,
1827 min_color, min_width, max_color, max_width,
1850 xmin, xmax, ymin, ymax, shade_min, shade_max,
1851 sh_cmap, sh_color, sh_width,
1852 min_color, min_width, max_color, max_width,
1853 ::
plfill, rectangular != 0,
1865 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1872 left, right, bottom, top,
1873 shade_min, shade_max,
1874 sh_cmap, sh_color, sh_width,
1875 min_color, min_width, max_color, max_width,
1895 left, right, bottom, top,
1896 shade_min, shade_max,
1897 sh_cmap, sh_color, sh_width,
1898 min_color, min_width, max_color, max_width,
1913 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1920 c2eval, c2eval_data,
1921 nx, ny, left, right, bottom, top,
1922 shade_min, shade_max,
1923 sh_cmap, sh_color, sh_width,
1924 min_color, min_width, max_color, max_width,
1947 c2eval, c2eval_data,
1948 nx, ny, left, right, bottom, top,
1949 shade_min, shade_max,
1950 sh_cmap, sh_color, sh_width,
1951 min_color, min_width, max_color, max_width,
1980 plsmem( maxx, maxy, plotmem );
1989 plsmema( maxx, maxy, plotmem );
2017 plspage( xp, yp, xleng, yleng, xoff, yoff );
2107 plstransform( coordinate_transform, coordinate_transform_data );
2141 const PLINT colline[],
const PLINT styline[],
2142 const char *legline[],
const char *labx,
2143 const char *laby,
const char *labtop )
2147 plstripc(
id, xspec, yspec, xmin, xmax, xjump, ymin, ymax, xlpos, ylpos,
2148 (
PLBOOL) y_ascl, (
PLBOOL) acc, colbox, collab, colline, styline,
2149 legline, labx, laby, labtop );
2158 const PLINT colline[],
const PLINT styline[],
2159 const char *legline[],
const char *labx,
2160 const char *laby,
const char *labtop )
2164 plstripc(
id, xspec, yspec, xmin, xmax, xjump, ymin, ymax, xlpos, ylpos,
2165 (
PLBOOL) y_ascl, (
PLBOOL) acc, colbox, collab, colline, styline,
2166 legline, labx, laby, labtop );
2197 plimage( data, nx, ny, xmin, xmax, ymin, ymax, zmin, zmax,
2198 Dxmin, Dxmax, Dymin, Dymax );
2211 plimagefr( data, nx, ny, xmin, xmax, ymin, ymax, zmin, zmax,
2212 valuemin, valuemax,
pltr, pltr_data );
2221 plstyl( nms, mark, space );
2230 plsvpa( xmin, xmax, ymin, ymax );
2239 plsxax( digmax, digits );
2257 plsyax( digmax, digits );
2266 plsym( n, x, y, code );
2275 plszax( digmax, digits );
2314 plvpas( xmin, xmax, ymin, ymax, aspect );
2323 plvpor( xmin, xmax, ymin, ymax );
2344 plw3d( basex, basey, height, xmin0, xmax0, ymin0, ymax0, zmin0, zmax0,
2363 plwind( xmin, xmax, ymin, ymax );
2376 *status = ( loc_status != 0 );
2388 *status = (
PLINT) loc_status;
2456 pltr0( x, y, tx, ty, pltr_data );
2464 pltr1( x, y, tx, ty, pltr_data );
2473 pltr2( x, y, tx, ty, pltr_data );
2482 pltr2p( x, y, tx, ty, pltr_data );
2570 const char **notes )
2596 #ifdef PL_DEPRECATED
2603 #endif // PL_DEPRECATED
2679 plGetName( dir, subdir, filename, filespec );