dennis@virtech.UUCP (Dennis P. Bednar) (08/31/89)
I am interested in knowing if there are any programs for X Windows that will display X-Y data in connected point form as a graph on the screen? I could see this being most useful for visually following the performance of stocks and/or mutual funds. It would be nice, too, if the Y-axis (vertical) could be displayed in logorithmic units, rather than in linear units (because logarithmic graphs have the property that the slope of the curve represents the same percentage gain regardless of the amount of the gain, whether it was $10 for a cheap stock or $100 for an expensive stock). In addition, it would be very desirable if the program could scale/squeeze so all of the data (x,y) points would fill the area in the window or it could "zoom" into just a portion of the time-period (X-axis) of the graph for closer inspection. Something like "xgraph <file", where file contains lines of the form "X Y". Is it better to write a program that directly calls X-Window promitives, or is is better to send the escape sequences that xterm uses for Textronix 4014 emulation? I would guess the former were better. I am relatively new to X, so please don't flame me if this question has been asked before. Thanks in advance. -- Dennis Bednar uunet!virtech!dennis (703) 430-9247 Virtual Technologies Inc, P.O. Box 876, Sterling VA, 22170
envbvs@epb2.lbl.gov (Brian V. Smith) (09/01/89)
< < I am interested in knowing if there are any programs for X < Windows that will display X-Y data in connected point form as a < graph on the screen? I could see this being most useful for < visually following the performance of stocks and/or mutual funds. < It would be nice, too, if the Y-axis (vertical) could be < displayed in logorithmic units, rather than in linear units Take a look at 'xgraph' in the contrib distribution. It has linear/log options for x and y axes, zoom with the mouse and hardcopy output. ... < if the program could scale/squeeze so all of the data (x,y) < points would fill the area in the window or it could "zoom" into < just a portion of the time-period (X-axis) of the graph for < closer inspection. Something like "xgraph <file", where file ^^^^^^ That is exactly the name of the existing program. ... < contains lines of the form "X Y". Is it better to write a program < that directly calls X-Window promitives, or is is better to send < the escape sequences that xterm uses for Textronix 4014 < emulation? It is a standalone program that (in fact) uses only Xlib (no toolkits) and is very nice. It is available via anonymous ftp from expo.lcs.mit.edu (18.30.0.212) in contrib/xgraph-11.tar.Z Be sure to set binary mode when copying it. _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory I don't speak for LBL, these non-opinions are all mine.