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 );
1256 const bool *draw,
bool ifcc )
1259 for (
int i = 0; i < n - 1; i++ )
1261 loc_draw[i] = (
PLBOOL) draw[i];
1276 for (
int i = 0; i < n - 1; i++ )
1278 loc_draw[i] = (
PLBOOL) draw[i];
1313 plptex( x, y, dx, dy, just, text );
1325 plptex3( wx, wy, wz, dx, dy, dz, sx, sy, sz, just, text );
1339 #ifdef PL_DEPRECATED
1346 #endif // PL_DEPRECATED
1350 #ifdef PL_DEPRECATED
1357 #endif // PL_DEPRECATED
1445 const bool *alt_hue_path )
1447 PLBOOL *loc_alt_hue_path = NULL;
1448 if ( alt_hue_path != NULL )
1450 loc_alt_hue_path =
new PLBOOL[npts - 1];
1451 for (
int i = 0; i < npts - 1; i++ )
1453 loc_alt_hue_path[i] = (
PLBOOL) alt_hue_path[i];
1459 plscmap1l( (
PLBOOL) itype, npts, intensity, coord1, coord2, coord3, loc_alt_hue_path );
1461 if ( loc_alt_hue_path != NULL )
1462 delete [] loc_alt_hue_path;
1471 const PLFLT *
a,
const bool *alt_hue_path )
1473 PLBOOL *loc_alt_hue_path = NULL;
1474 if ( alt_hue_path != NULL )
1476 loc_alt_hue_path =
new PLBOOL[npts - 1];
1477 for (
int i = 0; i < npts - 1; i++ )
1479 loc_alt_hue_path[i] = (
PLBOOL) alt_hue_path[i];
1486 a, loc_alt_hue_path );
1488 if ( loc_alt_hue_path != NULL )
1489 delete [] loc_alt_hue_path;
1505 const PLINT *alt_hue_path )
1507 PLBOOL *loc_alt_hue_path = NULL;
1508 if ( alt_hue_path != NULL )
1510 loc_alt_hue_path =
new PLBOOL[npts - 1];
1511 for (
int i = 0; i < npts - 1; i++ )
1513 loc_alt_hue_path[i] = (
PLBOOL) alt_hue_path[i];
1519 plscmap1l( (
PLBOOL) itype, npts, intensity, coord1, coord2, coord3, loc_alt_hue_path );
1521 if ( loc_alt_hue_path != NULL )
1522 delete [] loc_alt_hue_path;
1615 plsdimap( dimxmin, dimxmax, dimymin, dimymax, dimxpmm, dimypmm );
1633 plsdiplt( xmin, ymin, xmax, ymax );
1642 plsdiplz( xmin, ymin, xmax, ymax );
1679 plsfam( fam, num, bmax );
1706 plsfont( family, style, weight );
1719 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1725 plshade( a, nx, ny, defined, left, right, bottom, top,
1726 shade_min, shade_max,
1727 sh_cmap, sh_color, sh_width,
1728 min_color, min_width, max_color, max_width,
1747 plshade( a, nx, ny, defined, left, right, bottom, top,
1748 shade_min, shade_max,
1749 sh_cmap, sh_color, sh_width,
1750 min_color, min_width, max_color, max_width,
1760 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1766 plshades( a, nx, ny, defined, xmin, xmax, ymin, ymax,
1767 clevel, nlevel, fill_width, cont_color, cont_width,
1784 plshades( a, nx, ny, defined, xmin, xmax, ymin, ymax,
1785 clevel, nlevel, fill_width, cont_color, cont_width,
1807 xmin, xmax, ymin, ymax, shade_min, shade_max,
1808 sh_cmap, sh_color, sh_width,
1809 min_color, min_width, max_color, max_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,
1841 xmin, xmax, ymin, ymax, shade_min, shade_max,
1842 sh_cmap, sh_color, sh_width,
1843 min_color, min_width, max_color, max_width,
1844 ::
plfill, rectangular != 0,
1856 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1863 left, right, bottom, top,
1864 shade_min, shade_max,
1865 sh_cmap, sh_color, sh_width,
1866 min_color, min_width, max_color, max_width,
1886 left, right, bottom, top,
1887 shade_min, shade_max,
1888 sh_cmap, sh_color, sh_width,
1889 min_color, min_width, max_color, max_width,
1904 void ( *fill )(
PLINT,
const PLFLT *,
const PLFLT * ),
bool rectangular,
1911 c2eval, c2eval_data,
1912 nx, ny, left, right, bottom, top,
1913 shade_min, shade_max,
1914 sh_cmap, sh_color, sh_width,
1915 min_color, min_width, max_color, max_width,
1938 c2eval, c2eval_data,
1939 nx, ny, left, right, bottom, top,
1940 shade_min, shade_max,
1941 sh_cmap, sh_color, sh_width,
1942 min_color, min_width, max_color, max_width,
1971 plsmem( maxx, maxy, plotmem );
1980 plsmema( maxx, maxy, plotmem );
2008 plspage( xp, yp, xleng, yleng, xoff, yoff );
2098 plstransform( coordinate_transform, coordinate_transform_data );
2132 const PLINT colline[],
const PLINT styline[],
2133 const char *legline[],
const char *labx,
2134 const char *laby,
const char *labtop )
2138 plstripc(
id, xspec, yspec, xmin, xmax, xjump, ymin, ymax, xlpos, ylpos,
2139 (
PLBOOL) y_ascl, (
PLBOOL) acc, colbox, collab, colline, styline,
2140 legline, labx, laby, labtop );
2149 const PLINT colline[],
const PLINT styline[],
2150 const char *legline[],
const char *labx,
2151 const char *laby,
const char *labtop )
2155 plstripc(
id, xspec, yspec, xmin, xmax, xjump, ymin, ymax, xlpos, ylpos,
2156 (
PLBOOL) y_ascl, (
PLBOOL) acc, colbox, collab, colline, styline,
2157 legline, labx, laby, labtop );
2188 plimage( data, nx, ny, xmin, xmax, ymin, ymax, zmin, zmax,
2189 Dxmin, Dxmax, Dymin, Dymax );
2202 plimagefr( data, nx, ny, xmin, xmax, ymin, ymax, zmin, zmax,
2203 valuemin, valuemax,
pltr, pltr_data );
2212 plstyl( nms, mark, space );
2221 plsvpa( xmin, xmax, ymin, ymax );
2230 plsxax( digmax, digits );
2248 plsyax( digmax, digits );
2257 plsym( n, x, y, code );
2266 plszax( digmax, digits );
2305 plvpas( xmin, xmax, ymin, ymax, aspect );
2314 plvpor( xmin, xmax, ymin, ymax );
2335 plw3d( basex, basey, height, xmin0, xmax0, ymin0, ymax0, zmin0, zmax0,
2354 plwind( xmin, xmax, ymin, ymax );
2367 *status = ( loc_status != 0 );
2379 *status = (
PLINT) loc_status;
2447 pltr0( x, y, tx, ty, pltr_data );
2455 pltr1( x, y, tx, ty, pltr_data );
2464 pltr2( x, y, tx, ty, pltr_data );
2473 pltr2p( x, y, tx, ty, pltr_data );
2561 const char **notes )
2587 #ifdef PL_DEPRECATED
2594 #endif // PL_DEPRECATED
2670 plGetName( dir, subdir, filename, filespec );