GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #3907

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Peter Gerwinski
Subject: graphic
Date: 22 Jun 2000, 18:48:00

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

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
Nathalie Jarosz graphic 22 Jun 2000, 11:18:03

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).