cP Ver 2.206 by Chris Conger cP is a data viewing program capable of plotting two dimensional data in both linear or log space with or without symbols. The program only runs from the CLI. It requires Kickstart 37 or higher to run. There is no limit to the number of points that the program can load except the amount of ram on your system. There is also no limit to the number of sets, however the title boxes on the edge will scroll off the screen after about ten. cP does create a public screen, so you can use it for other applications. Its' name is cP. If there is already a cP screen in the public screen list cP will append a number to the screen name ( cp1.. ). If you don't like the name cP (similar to c++) feel free to rename it to whatever. cP stands for ChrisPlot. cP reads an environmental variable at startup which can be used to change the default values of the settings. The name of the var is CPCONFIG. Any options given on the command line will override the environmental variable. EX: > setenv cpconfig "ID=32768 FONT helvetica SIZE 9 GRID SETDEF W=1000" The template is: FILES/A/M,LOGX/S,LOGY/S,GRID/S,SYM/S,ID=DISPLAYID/N/K,FONT/K,SIZE/N/K ,LORES/S,HIRES/S,LACE/S,SETDEF/S,W=WIDTH/N/K,H=HEIGHT/N/K FILES - This can be multiple args and includes Wildcard patterns. The files must be ascii numbers delimited by whitespace or commas. cP will ignore numbers after the first two colums. cP will also ignore text lines so that you can place a header in the file. See file sample.dat to see the format. Also remember that cP stores its' values as 4 byte floats, so don't have any values outside of 1e-38 to 1e38. LOGX - Switch to turn log XAxis on. If any values are LESS THAN or = to ZERO, sets back to LINX. ( Can't do log negative ). LOGY - Switch to turn log YAxis on. If any values are LESS THAN or = to ZERO, sets back to LINY. ( Can't do log negative ). GRID - Switch to turn on the grid. SYM - Draw x symbol at each point. ID=DISPLAYID - ID number of the type display you wish to create. Default is HIRES LACE. EX: ID=4 -> LORES LACE 320x400 ID=32768 -> HIRES 640x200 ID=0 -> LORES 320x200 I don't have the includes for 2.1 or 3.0, so can't tell you what the others are. cP needs 16 colors, so SuperHires won't be any good. Super72 should be good I think ( I don't know the ID number though ). FONT - Name of the font to use for the display. The default is topaz. cP adds '.font' to the string. EX: FONT helvetica SIZE 12 SIZE - Size of the font. Default 8. Max size 18. LORES - Lores screen HIRES - Hires screen LACE - combine with either LORES or HIRES this function OR's the LACE key over DISPLAYID and LORES/HIRES. SETDEF - Makes the new screen the default public screen. W=WIDTH - Set screen width in pixels. cP will open a virtual autoscroll screen if WIDTH is wider than display. EX. W=1800 H=HEIGHT - Set screen height in pixels. cP will open a virtual autoscroll screen if HEIGHT is taller than display. EX. H=800 EXAMPLE COMMAND: > cp sam#?.dat font ZapfChancery size 12 ID=0 LACE SYM LOGX W=1500 IDENTIFY - cP will write the x and y values cooresponding to mousex and mousey when select down. If the mouse is not within three pixels when selectup then cP erases the text, otherwise it makes the text white. The archive contains only an IEEE math compiled version. The original source for the GUI was created with GadToolsBox 37.273 by Jan van den Baard Jaba Development Much thanks since I'd never have gotten anywhere without it. The current version of the GUI has been modified so that GadToolsBox can't edit the source anymore. This code is freely distributable by any means, however I retain all rights to it. I take no responsibility for any damage which it may cause to your system, use at your own risk. Comments, Suggestions, Ideas, BUGS or if you would like a copy of the source code please contact me at: Chris Conger BIX - cconger NET - congerc@abqa.saic.com c/o SAIC 2109 AirPark Rd. SE Albuquerque, NM 87106 Plans: NONE unless someone finds bugs