1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444
|
.ig >>
<STYLE TYPE="text/css">
<!--
A:link{text-decoration:none}
A:visited{text-decoration:none}
A:active{text-decoration:none}
OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }
H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: pl(1)</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
<table cellpadding=2 width=550><tr>
<td><br><h2>pl(1)</h2></td>
<td align=right>
<small>
<a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
Version 2.33 Jun'06
<td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>
.TH pl(1) PL "02-JUN-2006 PL ploticus.sourceforge.net"
.SH Name
pl
.SH Synopsis
\fCpl -prefab \fIprefabname\fC \fIparm=value\fC .. [\fI-options\fR]
.br
\0.. OR ..
.br
\fCpl \fIscriptfile\fC [\fI-options\fC]
.ig >>
<br><br><br>
.>>
.ig >>
<table cellpadding=2 border=0 ><tr bgcolor=FFFFEC><td colspan=2>
<b>Quick links for finding things on this page:</b>
</td></tr><tr bgcolor=FFFFEC><td valign=top>
<ul>
<li> <a href="#description">Description</a>
<li> <a href="#findexamples">Where to find examples</a>
<li> <a href="#options">Command line arguments</a>
<br> <a href="#basic">Basic options</a>
<br> <a href="#varvalue">Setting ploticus variables</a>
<br> <a href="#resultformat">Result format options</a>
<br> <a href="#clickmap">Clickmap and mouseover</a>
<br> <a href="#resultsize">Result sizing options</a>
<br> <a href="#graphic">Graphics environment options</a>
<br> <a href="#capacity">Capacity setting options</a>
<br> <a href="#svg">SVG / XML options</a>
<br> <a href="#interact">Interactive / workstation options</a>
<br> <a href="#paper">Paper orientation options</a>
<br> <a href="#debug">Development & debugging options</a>
</td><td valign=top>
<li> <a href="#outfile">Naming of the result file(s)</a>
<li> <a href="#examples">Usage examples</a>
<li> <a href="#environment">Environment</a>
<li> <a href="#bugs">Bugs</a>
<li> <a href="#author">Author, Copyright, Licensing</a>
<li> <a href="#seealso">See also</a>
</td></tr></table>
.>>
.ig >>
<a name=description></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Description
\fBpl\fR is the primary component of the
.ig >>
<a href="http://ploticus.sourceforge.net">
.>>
\0'ploticus' data display package
.ig >>
</a>
.>>
.LP
\fBpl\fR is a program that produces plots and charts from data, and
produces results that can be viewed on web pages, paper, slides,
or interactively on the screen. Standard types of plots may be
done using
.ig >>
<a href="prefabs.html">
.>>
\0prefab plot templates
.ig >>
</a>
.>>
, or a user-developed
.ig >>
<a href="scripts.html">
.>>
\0script file
.ig >>
</a>
.>>
may be supplied for greater flexibility and customization.
\fBpl\fR may be executed from the command line or
.ig >>
<a href="cgi.html">
.>>
\0as a CGI program.
.ig >>
</a>
.>>
.LP
For complete online docs and downloads see
.ig >>
<a href="http://ploticus.sourceforge.net">
.>>
\0http://ploticus.sourceforge.net
.ig >>
</a>
.>>
.ig >>
<br><br><br>
.>>
.ig >>
<a name=findexamples></a>
.>>
.SH Where to find examples
See the various
.ig >>
<a href="prefabs.html">
.>>
\0prefab examples
.ig >>
</a>
.>>
\0.
A large number of
.ig >>
<a href="../gallery/index.html">
.>>
\0script examples
.ig >>
</a>
.>>
are also available.
Some
.ig >>
<a href="#examples">
.>>
\0usage examples
.ig >>
</a>
.>>
are also shown below.
.ig >>
<br><br><br>
.>>
.ig >>
<a name=options></a>
<br>
.>>
.SH Command line arguments
.LP
Command line arguments may generally be given in any order.
If there are arguments that you want to always have in effect, you can invoke them from a
.ig >>
<a href="config.html">
.>>
\0config file.
.ig >>
</a>
.>>
Many settings can also be made dynamically from scripts via
.ig >>
<a href="settings.html">
.>>
\0proc settings
.ig >>
</a>
.>>
or
.ig >>
<a href="page.html">
.>>
\0proc page.
.ig >>
</a>
.>>
Processing occurs in this order: first the config file is read; then command line args are processed (left to right);
then
.ig >>
<a href="page.html">
.>>
\0proc page
.ig >>
</a>
.>>
and/or
.ig >>
<a href="settings.html">
.>>
\0proc settings.
.ig >>
</a>
.>>
Later settings override earlier ones.
.ig >>
<a name=basic></a>
.>>
.ig >>
<br><br>
.>>
.SH Basic command line options
.LP
\fB-prefab\fR
.ig >>
.>>
\fIprefabname\fR
.IP \0
Produce a plot using a
.ig >>
<a href="prefabs.html">
.>>
\0prefab
.ig >>
</a>
.>>
plot template.
\fIprefabname\fR identifies the template, eg.
\fCcron\fR or \fCvbars\fR.
Necessary parameters are supplied on the command line using the form \fIparm=value\fR.
.ig >>
<br><br>
.>>
.LP
\fIscriptfile\fR
.br
\fB-f \fIscriptfile\fR
.IP \0
names a
.ig >>
<a href="scripts.html">
.>>
\0script file
.ig >>
</a>
.>>
that will be interpreted to produce results.
Alternatively, \fB-stdin\fR may be used to indicate
that script will be available on standard input.
.ig >>
<br><br>
.>>
.ig >>
<a name=varvalue></a>
.>>
.LP
\fIvariable\fC=\fIvalue\fR
.IP \0
Declares the named
\fIvariable\fR and sets it to the given \fIvalue\fR.
This is a convenient way to pass information
to prefabs and scripts. Variable names are case-sensitive.
.br
Example: \fCCUTDATE=10-31-98\fR
.br
sets the variable \fCCUTDATE\fR to \fC10-31-98\fR.
.ig >>
<br><br>
.>>
.LP
\fB-o
.ig >>
.>>
\fIoutfile\fC | stdout\fR
.IP \0
Specify a filename where the result will be written.
No processing is applied to this name.. so the ending should be appropriate for
the selected output format, eg. use \fC.png\fR for PNG files.
If \fC-o stdout\fR is used,
result will be sent to standard output.
If \fB-o\fR is not specified, a
.ig >>
<a href="#outfile">
.>>
\0default output filename
.ig >>
</a>
.>>
will be used.
.br
Example: \fC-o fp001.png\fR
.ig >>
<br><br>
.>>
.LP
\fB-dir
.ig >>
.>>
\fIdirname\fR
.IP \0
Set ploticus' working directory to \fIdirname\fR.
If used, this argument should be specified leftmost on the command line,
since it affects evaluation of other args.
.ig >>
<a name=resultformat></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Result format options
.LP
(Availability depends on your ploticus configuration/build)
.LP
\fB-png \fR
.ig >>
.>>
PNG image
.LP
\fB-gif \fR
.ig >>
.>>
pseudo-GIF image
.LP
\fB-jpeg\fR
.ig >>
.>>
JPEG image
.LP
\fB-svg\fR or \fB-svgz\fR
.ig >>
.>>
.ig >>
<a href="svg.html">
.>>
\0SVG
.ig >>
</a>
.>>
graphic.
See also SVG / XML options below.
.LP
\fB-swf\fR
.ig >>
.>>
.ig >>
<a href="swf.html">
.>>
\0SWF
.ig >>
</a>
.>>
(flash) result.
.LP
\fB-wbmp\fR
.ig >>
.>>
WBMP image
.LP
\fB-eps \fR
.ig >>
.>>
EPS (encapsulated PostScript)
.LP
\fB-ps \fR
.ig >>
.>>
paginated PostScript to stdout
.LP
\fB-x11 \fR
.ig >>
.>>
display on X11 screen
.LP
\fB-drawdump\fR
\fIfilename\fR
.ig >>
.>>
produce no visible graphic; save a generic representation of the graphic result to a file.
By using \fC-drawdump\fR and \fC-drawdumpa\fR you can easily
.ig >>
<a href="prefabs.html#drawdump">
.>>
\0overlay or combine results from separate pl runs.
.ig >>
</a>
.>>
The drawdump file can be rendered later in any desired format, using this command:
\fCpl -prefab draw dumpfile=\fIfilename\fR
.ig >>
.>>
or by using
.ig >>
<a href="drawcommands.html">
.>>
\0proc drawcommands.
.ig >>
</a>
.>>
Drawdump capability is available in all builds. (2.30+)
.LP
\fB-drawdumpa\fR
\fIfilename\fR
.ig >>
.>>
same as \fC-drawdump\fR but result is \fBappended\fR to file.
.ig >>
<a name=clickmap></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Clickable image maps and mouseover options
.LP
\fB-csmap\fR
.IP \0
produce a
.ig >>
<a href="clickmap.html">
.>>
\0client-side clickable imagemap
.ig >>
</a>
.>>
to accompany a png, gif, or jpeg.
These can be used for hyperlinks, and also for providing
pop-up text labels that appear when the mouse passes over a region.
By default, client-side map content is written to stdout.
.LP
\fB-map\fR
.IP \0
produce a
.ig >>
<a href="clickmap.html">
.>>
\0server-side clickable imagemap file
.ig >>
</a>
.>>
to accompany a png, gif, jpeg, or SVG.
.ig >>
<br><br>
.>>
.LP
\fB-csmapdemo\fR
.IP \0
Same as \fB-csmap\fR but all mapped regions are shown outlined in green,
and a complete HTML chunk is produced which involves the output image name.
.LP
\fB-mapdemo\fR
.IP \0
Same as \fB-map\fR but all mapped regions are shown outlined in green.
.ig >>
<br><br>
.>>
.LP
\fB-mapfile\fR
.ig >>
.>>
\fIfilename\fC | stdout | stderr\fR
.IP \0
explicitly name the output file containing the map info. The name may also be set in
.ig >>
<a href="page.html">
.>>
\0proc page.
.ig >>
</a>
.>>
If a name is not specified, client-side image map info will be written to stdout;
server-side image map info will be written to a file having the same name as the output result file
except with a \fC.map\fR suffix
(\fCstdout\fR may be useful in dynamic content HTML situations).
For SVG this parameter is not needed, since image map info is embedded in the SVG file.
.ig >>
<a name=resultsize></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Result sizing options
.LP
\fB-scale\fR
.ig >>
.>>
\fIsx\fR[,\fIsy\fR]
.IP \0
Scale the final result.
If one value is given, the result is scaled by this amount in both x and y.
If two values are given, scaling in x and scaling in y may be done independently.
A scale value of less than 1.0 reduces the
size; an scale value of greater than 1.0 enlarges.
Scaling is done relative to the origin (0,0) which is at the lower left.
.br
Example: \fC-scale 0.7\fR
.ig >>
<br><br>
.>>
.LP
\fB-pagesize\fR
.ig >>
.>>
\fIwidth,height\fR
.IP \0
Sets the pre-crop size of the result image for GIF/PNG/JPEG, or sets the display window size when drawing to X11.
On other output devices this option does nothing.
\fIwidth\fR and \fIheight\fR are in
.ig >>
<a href="attributetypes.html#positionunits">
.>>
\0absolute units.
.ig >>
</a>
.>>
0,0 is the lower left corner.
If -pagesize is not specified, the default size will be 8" x 8".
Size is set before any drawing takes place and is unaffected by the -scale option.
.IP
When rendering PNG/GIF/JPEG images, this option determines amount of internal memory allocation for accommodating the image.
The result can never be bigger than this size, and any drawing outsize the bounds will not be visible.
\fBTo create PNG/GIF/JPEG images larger than 8" x 8", this option MUST be specified to set a bigger size.\fR
Cropping options (below) can be used along with -pagesize as long as they result in a smaller rectangle
than the pagesize; they take effect after all drawing has been completed.
.IP
\fB-pagesize\fR has no effect with EPS or paginated PostScript results (the PostScript
BoundingBox will be determined by the extent of the graphic).
.IP
Example: \fC-pagesize 7,3\fR
.ig >>
<br><br>
.>>
.LP
\fB-tightcrop\fR
.IP \0
For image or EPS output, crop the result tightly to the extent of
the design. Normally a small margin is allowed on all four sides.
This option sometimes crops a bit too tight; if so try \fB-croprel\fR.
.ig >>
<br><br>
.>>
.LP
\fB-crop\fR
.ig >>
.>>
\fIx1,y1,x2,y2\fR
.IP \0
Crop image or EPS result to the box specified by
\fIx1,y1\fR and \fIx2,y2\fR, in
.ig >>
<a href="attributetypes.html#positionunits">
.>>
\0absolute units.
.ig >>
</a>
.>>
Note that there may be no spaces in the coordinates specification.
Cropping takes place after design is rendered and does not
affect coordinate locations.
.br
Example: \fC-crop 1.2,0.8,4.4,5.2\fR
.ig >>
<br><br>
.>>
.LP
\fB-croprel\fR
.ig >>
.>>
\fIleft,bottom,right,top\fR
.IP \0
Crop image or EPS result tightly to the extent of the design (like \fB-tightcrop\fR),
but then adjust the cropping outward or inward on one or more sides.
\fIleft\fR is the amount to adjust the left side, in
.ig >>
<a href="attributetypes.html#positionunits">
.>>
\0absolute units.
.ig >>
</a>
.>>
Similarly for \fIbottom\fR, \fIright\fR, and \fItop\fR.
Positive values always adjust outward from center; negative values adjust inward (tighter).
There may be no spaces in the \fIleft,bottom,right,top\fR specification.
Cropping takes place after design is rendered and does not
affect coordinate locations.
.br
Example: \fC-croprel 0,-0.1,0,0.1\fR
.ig >>
<a name=graphic></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Graphics environment options
.LP
\fB-font\fR
.ig >>
.>>
\fIfont\fR
.IP \0
sets the overall font to \fIfont\fR. See
.ig >>
<a href="fonts.html">
.>>
\0fonts
.ig >>
</a>
.>>
for more info.
.ig >>
<br><br>
.>>
.LP
\fB-textsize\fR
.ig >>
.>>
\fIpointsize\fR
.IP \0
sets the overall default textsize to \fIpointsize\fR.
All embedded size specifications will be rendered relative to this.
.ig >>
<br><br><br>
.>>
.LP
\fB-linewidth\fR
.ig >>
.>>
\fIw\fR
.IP \0
sets the overall default linewidth to \fIw\fR.
All embedded line width specifications will be rendered relative to this.
See linedetails(pli) for more on line width.
.ig >>
<br><br>
.>>
.LP
\fB-color\fR
.ig >>
.>>
.ig >>
<a href="color.html">
.>>
\0color
.ig >>
</a>
.>>
.IP \0
sets the overall default text and line drawing color to \fIcolor\fR.
.ig >>
<br><br>
.>>
.LP
\fB-backcolor\fR
.ig >>
.>>
.ig >>
<a href="color.html">
.>>
\0color
.ig >>
</a>
.>>
.IP \0
sets the background color to \fIcolor\fR.
.ig >>
<br><br>
.>>
.ig >>
<a name=cm></a>
.>>
.LP
\fB-cm\fR
.ig >>
.>>
.IP \0
Use centimeters as your absolute units, instead of inches.
On the command line this must appear to the left of any arguments dealing with
absolute unit values, such as -pagesize.
Centimeter absolute units can also be set via
.ig >>
<a href="../doc/settings.html">
.>>
\0proc settings.
.ig >>
</a>
.>>
If cm will always be the desired
absolute units, the preferred way to achieve this is by using
\fCunits: cm\fR in a
.ig >>
<a href="../doc/config.html">
.>>
\0ploticus config file.
.ig >>
</a>
.>>
.ig >>
<br><br>
.>>
.LP
\fB-inches\fR
.IP \0
Use inches as your absolute units. This is the default.
.ig >>
<br><br>
.>>
.LP
\fB-outlabel\fR
.ig >>
.>>
\fIlabel\fR
.IP \0
Set the label or title for the output. For X11 this sets the window title;
for PostScript and SVG it sets the \fC%%Title\fR attribute.
.ig >>
<a name=capacity></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Capacity setting options
These options (new with version 2.10) allow capacities to be raised for accomodation
of very large data sets, or lowered to minimize memory usage.
The defaults in this section are defined in \fCpl.h\fR.
.LP
\fB-maxrows
.ig >>
.>>
\fInrows\fR
.IP \0
Set the capacity for data rows to \fInrows\fR. Default \fInrows\fR is 10,000.
Ploticus will allocate one pointer for each row.
.ig >>
<br><br>
.>>
.LP
\fB-maxfields
.ig >>
.>>
\fInfields\fR
.IP \0
Set the capacity for data fields to \fInfields\fR. Default \fInfields\fR is 200,000.
Ploticus will allocate one pointer for each field.
.ig >>
<br><br>
.>>
.LP
\fB-maxproclines
.ig >>
.>>
\fInlines\fR
.IP \0
Set the capacity for script lines for active procs to \fInlines\fR.
Default \fInlines\fR is 5000.
Active procs are the current proc, all \fC#save\fRd procs, and
all proc getdata procs that contain embedded \fCdata\fR.
Ploticus will allocate one pointer for each line in each active proc.
.ig >>
<br><br>
.>>
.LP
\fB-maxvector
.ig >>
.>>
\fIncells\fR
.IP \0
Set the capacity for the data plotting vector to \fIncells\fR.
Default \fIncells\fR is 100,000.
The data plotting vector is an array which holds plottable
values for situations where the values must be sorted or pre-screened for
bad values. Ploticus will allocate one \fCdouble\fR value for each cell.
.ig >>
<br><br>
.>>
.LP
\fB-maxdrawpoints
.ig >>
.>>
\fIn\fR
.IP \0
Use this if you need to render a polygon having more than 500 points in PNG/GIF/JPEG, X11, or SWF, or
any continuous line having more than 500 points in SWF.
.ig >>
<br><br>
.>>
.LP
Note: raising the maximum number of categories may be done using
.ig >>
<a href="categories.html">
.>>
\0proc categories
.ig >>
</a>
.>>
from within the script.
.ig >>
<br><br><br>
.>>
.ig >>
<a name=svg></a>
.>>
.SH SVG / XML options:
.LP
\fB-svg_tagparms\fR
.ig >>
.>>
\fIstring\fR
.IP \0
This allows arbitrary \fCtext\fR to be inserted into the opening \fC<svg>\fR tag.
.br
Example: \fC-svg_tagparms 'height="10cm" width="15cm"'\fR
.ig >>
<br><br>
.>>
.LP
\fB-omit_xml_declaration\fR
.IP \0
By default the first line of the SVG result will be the XML declaration \fC<?xml .. >\fR .
Use this option to suppress the XML declaration line if
the SVG result is to be embedded into a larger XML document.
.ig >>
<br><br>
.>>
.LP
\fB-xml_encoding\fR
.ig >>
.>>
\fImethod\fR
.IP \0
Set the XML character encoding method. This encoding will be indicated in the XML declaration line.
The default is \fCiso-8859-1\fR which provides Latin and Western European character sets.
For Unicode fonts this should be set to \fCutf-8\fR (for more discussion see the Unicode section in
.ig >>
<a href="fonts.html">
.>>
\0fonts
.ig >>
</a>
.>>
).
.ig >>
<br><br>
.>>
.LP
\fB-tag\fR
.IP \0
Causes a suitable
HTML \fC<EMBED>\fR tag to be written to standard output.
.ig >>
<br><br>
.>>
.LP
\fB-zlevel \fIn\fR
.IP \0
This may be used to set the compression level to \fIn\fR for SVGZ output
(0 - 9 where 9 is highest level of compression and the default).
.ig >>
<a name=interact></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Interactive (workstation) use options
.LP
\fB-winloc\fR
.ig >>
.>>
\fIx,y\fR
.IP \0
Control where on the screen the upper-left corner of the X11 display
window will be placed. \fIx\fR and \fIy\fR are in pixels.
Example: \fC-winloc 200 0\fR
.ig >>
<br><br>
.>>
.LP
\fB-v\fR
.ig >>
.>>
\fIcommand\fR
.br
\fB-viewer\fR
.ig >>
.>>
\fIcommand\fR
.IP \0
After generating results in the specified format, execute \fIcommand\fR
in order to view the results on your screen.
The output file will automatically be
included in the \fIcommand\fR. For example, if a GIF file is being
generated you might use this to invoke the xv utility: \fC-viewer xv\fR.
If PostScript is being generated you could use something like this to
invoke the ghostview utility: \fC-viewer "gv -magstep -1"\fR.
The given command must be available on your system and locatable in
your command search path.
This option may not be used with \fC-o stdout\fR.
.ig >>
<br><br>
.>>
.LP
\fB-noshell\fR
.IP \0
If specified, ploticus is prohibited from issuing any shell commands.
This is a security feature useful for example when running a script that
was sent to you by an unknown party. New in 2.31
.ig >>
<a name=paper></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Paper orientation options
.LP
\fB-landscape\fR
.IP \0
For paginated postscript, set paper orientation to landscape (oblong).
.ig >>
<br><br>
.>>
.LP
\fB-portrait\fR
.IP \0
For paginated postscript, set paper orientation to portrait.
.ig >>
<br><br>
.>>
.LP
\fB-posteroffset\fR
.ig >>
.>>
\fIx,y\fR
.IP \0
Allows production of large-size posters made up of multiple standard
sheets of paper butted together. May be used only with paginated PostScript,
and should be used in combination with the \fC-scale\fR and \fC-textsize\fR
options. \fIx,y\fR is the point within your result (in
.ig >>
<a href="attributetypes.html#positionunits">
.>>
\0absolute units
.ig >>
</a>
.>>
) that is to be placed at the lower left corner of the page.
For further discussion of this, see
.ig >>
<a href="posters.html">
.>>
\0posters
.ig >>
</a>
.>>
\0.
.ig >>
<a name=debug></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Development and debugging options
.LP
\fB-debug\fR
.IP \0
Debug mode. Causes dianostic information to be written to the
diagnostic stream (stderr by default, see \fC-diagfile\fR below).
Highly recommended if you are experiencing difficulty.
Best to
use \fC-debug\fR as the first (leftmost) argument so that it can report
on all arguments gotten.
Another effect of debug mode is that any temporary files are not removed upon termination.
.ig >>
<br><br>
.>>
.LP
\fB-ping\fR
.IP \0
Write the ploticus name and version number to standard output and exit. versions 2.33+
.ig >>
<br><br>
.>>
.LP
\fB-echo\fR
.ig >>
.>>
\fC[ diag | stdout]\fR
.IP \0
Write ploticus script lines as they are executed. Lines are written to
the diagnostic stream (standard error by default) or standard output.
Lines are written after variables
and most script directives, including flow-of-control directives, are evaluated.
.ig >>
<br><br>
.>>
.LP
\fB-showbad\fR
.IP \0
Identify unplottable data, showing the value, and its row and field.
.ig >>
<br><br>
.>>
.LP
\fB-diagfile\fR
.ig >>
.>>
\fIfilename | stderr | stdout\fR
.IP \0
All non-error messages and output will be written to this file (default is stderr).
.ig >>
<br><br>
.>>
.LP
\fB-errmsgpre\fR
.ig >>
.>>
\fItag\fR
.IP \0
Allows developer to set the first portion of all ploticus error messages to \fCtag\fR
for purposes of presentation or identification.
.ig >>
<br><br>
.>>
.LP
\fB-errfile\fR
.ig >>
.>>
\fIfilename | stderr | stdout\fR
.IP \0
All error messages will be written to this file (default is stderr).
.ig >>
<br><br>
.>>
.LP
\fB-help\fR or \fB-?\fR or \fB-version\fR
.IP \0
Print version number, copyright info, web site address, etc.
.ig >>
<br><br><br>
.>>
.ig >>
<a name=outfile></a>
.>>
.SH Output file names
The output file may be specified on the command line using the \fB-o\fR option,
or via Proc Page's outfilename attribute.
If so, the result is written to a file of that name.
\fC-o stdout\fR may also be used to send result to standard output.
.LP
Otherwise, if your script filename has a "recognized extension"
.\" a prefab is being used or
( \fB.p\fR, \fB.pl\fR, \fB.plo\fR, \fB.pls\fR, \fB.htm\fR or \fB.html\fR ),
the base part of the script file name is used and \fC.png\fR, \fC.gif\fR, etc.
is appended. If your script filename doesn't have a recognized extension, the
generic name \fCout.*\fR will be used.
.LP
X11 output is always displayed on the screen, and
paginated PostScript is written to standard output unless \fC-o\fR is used.
.LP
If page breaks (Proc Page) are encountered when rendering in any format other
than paginated PostScript,
special action is necessary since each page must go into a separate file.
A Proc Page \fCoutfilename\fR may be specified for each page;
otherwise a \fCp\fIn\fR prefix will be attached to the beginning of
each page's output file name to indicate page \fIn\fR.
.LP
If a
.ig >>
<a href="clickmap.html">
.>>
\0clickmap
.ig >>
</a>
.>>
is being generated, the result file is named similarly to the above.
.ig >>
<a name=examples></a>
.ig >>
<br><br><br>
.>>
.SH Usage examples
.LP
The following example uses the
.ig >>
<a href="scat.html">
.>>
\0scat prefab:
.ig >>
</a>
.>>
.IP \0
\fCpl -prefab scat -png datafile=results.dat x=2 y=3\fR
.LP
The following examples assume
that you have a script file called \fClineplot1.p\fR.
.IP \0
\fCpl -x lineplot1.p\fR = view on X11 screen
.IP
\fCpl -png lineplot1.p\fR = create PNG image lineplot1.png
.IP
\fCpl -gif lineplot1.p -o stdout\fR = create GIF image on standard output
.IP
\fCpl -gif lineplot1.p -viewer xv\fR = produce GIF and view using xv
(assuming xv image viewer is available on your system).
.IP
\fCpl -eps lineplot1.p\fR = produce EPS file lineplot1.eps
.IP
\fCpl -eps lineplot1.p -viewer gv\fR = produce EPS and view using gv
(that's ghostview, assuming it is available on your system).
.IP
\fCpl -eps lineplot1.p -o lineplot.eps\fR = produce EPS into file lineplot.eps
.IP
\fCpl -ps lineplot1.p | lp\fR = produce paginated postscript and send to
unix lp print spooler.
.IP
\fCpl -ps lineplot1.p -veiwer gv\fR = produce paginated postscript
and view using ghostview.
.ig >>
<br><br><br>
.>>
.ig >>
<a name=environment></a>
.>>
.SH Environment
.LP
\fBPLOTICUS_CONFIG\fR
.IP \0
The name of a
.ig >>
<a href="config.html">
.>>
\0ploticus configuation file
.ig >>
</a>
.>>
, for setting default date notations, number
notations, measurement units, etc.
.ig >>
<br><br>
.>>
.LP
\fBPLOTICUS_PREFABS\fR
.IP \0
The path name of a directory where ploticus will look for
.ig >>
<a href="prefabs.html">
.>>
\0prefab
.ig >>
</a>
.>>
scripts. The "factory" prefabs are located in
the ploticus ./prefabs subdirectory.
.ig >>
<br><br>
.>>
.LP
\fBLC_CTYPE\fR, \fBLC_COLLATE\fR, \fBLANG\fR
.IP \0
Locale support. Thanks to Oleg Bartunov oleg@sai.msu.su
for contributing this. \fBpl\fR must be
built with -DLOCALE for this to work.
.ig >>
<br><br>
.>>
.LP
\fBTDH_ERRMODE\fR
.IP \0
Control the disposition of error messages. Allowable values: \fCstderr\fR
which is the default, and \fCcgi\fR which causes error messages to be written
to stdout with html formatting.
.ig >>
<br><br><br>
.>>
.ig >>
<a name=bugs></a>
.>>
.SH Bugs
Ploticus has some stated
.ig >>
<a href="limits.html">
.>>
\0limitations
.ig >>
</a>
.>>
(mostly related to capacities that you may run into if you're dealing with large data sets).
To report problems or get help see the
.ig >>
<a href="support.html">
.>>
\0ploticus support page.
.ig >>
</a>
.>>
.ig >>
<a name=author></a>
.>>
.ig >>
<br><br><br>
.>>
.SH Author, Copyright, Licensing
The primary author is
.ig >>
<a href="http://ploticus.sourceforge.net/steve.html">
.>>
\0Stephen C. Grubb.
.ig >>
</a>
.>>
Ploticus covered by the General Public License (GPL)... please see the
.ig >>
<a href="Copyright.html">
.>>
\0ploticus copyright page
.ig >>
</a>
.>>
for more info.
.ig >>
<a name=seealso></a>
.>>
.ig >>
<br><br><br>
.>>
.SH See also
.ig >>
<a href="http://ploticus.sourceforge.net">
.>>
\0http://ploticus.sourceforge.net
.ig >>
</a>
.>>
.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif">
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>
|