Hello all!
I just wonder if it is possible to plot some graphs with pascal? If the answer is yes, how it works? And if not, how can I use my output files to easily generate graphs?
Thanks for your help,
Nathalie
Nathalie:
I use two basic graphic programs, written in Pascal:
http://www.lecb.ncifcrf.gov/~toms/delila/xyplo.html http://www.lecb.ncifcrf.gov/~toms/delila/genhis.html
Their input files are a bit tricky to get used to, but they are quite powerful. Their big advantage is that you can run the from a command line or from a program. This means you can easily embed them into scripts. I use them often in very complex scripts to put up results.
Tom
Dr. Thomas D. Schneider National Cancer Institute Laboratory of Experimental and Computational Biology Frederick, Maryland 21702-1201 toms@ncifcrf.gov permanent email: toms@alum.mit.edu http://www.lecb.ncifcrf.gov/~toms/
Hello all!
I just wonder if it is possible to plot some graphs with pascal? If the answer is yes, how it works? And if not, how can I use my output files to easily generate graphs?
Thanks for your help,
Nathalie
Hello, Nathalie and everyone!
I just wonder if it is possible to plot some graphs with pascal? If the answer is yes, how it works?
You can use the GRX graphics library from GNU Pascal. I just uploaded a new GRX snapshot - see:
http://www.gnu.de/software/GRX/
The included units `pascal/grx20.pas' and `pascal/bgi/bgi2grx.pas' (the latter one being a clone of Borland's "Graph") will need some tweaking to work with current versions of GPC. Be welcome to ask on this list if you have problems with them. I hope that we will have the possibility to include up-to-date versions of these units in the GPC distribution in the future.-
And if not, how can I use my output files to easily generate graphs?
If your graphs are graphs of mathematical functions, I recommend to output a table of values like this
0.0 0.00 0.1 0.01 0.2 0.04 0.3 0.09 0.4 0.16 0.5 0.25 ... ...
with a command like:
WriteLn (x : 7 : 1, f (x) : 11 : 2)
This simple format is understood by many plotting programs such as Gnuplot. (Although the name "Gnuplot" is not coming from the GNU project, it is listed under http://www.gnu.org/software/.:-)
Hope this helps,
Peter