diff options
author | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
commit | ab8cc85adde879fb963c94d15675783f2cf4b183 (patch) | |
tree | c202482327f474583b750b2c45dedfc4e4312b1d /src/input/draw2dSF.input.pamphlet | |
download | open-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz |
Initial population.
Diffstat (limited to 'src/input/draw2dSF.input.pamphlet')
-rw-r--r-- | src/input/draw2dSF.input.pamphlet | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/input/draw2dSF.input.pamphlet b/src/input/draw2dSF.input.pamphlet new file mode 100644 index 00000000..6edaed4a --- /dev/null +++ b/src/input/draw2dSF.input.pamphlet @@ -0,0 +1,52 @@ +\documentclass{article} +\usepackage{axiom} +\begin{document} +\title{\$SPAD/src/input draw2dSF.input} +\author{The Axiom Team} +\maketitle +\begin{abstract} +\end{abstract} +\eject +\tableofcontents +\eject +\section{License} +<<license>>= +--Copyright The Numerical Algorithms Group Limited 1994. +@ +<<*>>= +<<license>> +)clear all + +--open a file for input + +drawList(lp:List Point DoubleFloat):VIEW2D == + n := #lp + g := graphImage()$GRIMAGE + for p in lp repeat + component(g,p,pointColorDefault(),lineColorDefault(),pointSizeDefault()) + gi := makeGraphImage(g)$GRIMAGE + makeViewport2D(gi,[title("Points")])$VIEW2D + +readTheFile(filename,numberOfPoints) == + filenew:FILE(DoubleFloat):=open(filename,"input") + llp:=[point([read!(filenew),read!(filenew)])$Point(DoubleFloat) + for i in 1..numberOfPoints] + +-- first we read the file of x, y data +-- we cheat to get at the AXIOM variable +axiom:=string getEnv("AXIOM")$Lisp +pts:=readTheFile(axiom "/../../src/input/draw2dSF.data",1024); + +-- then we plot the points +drawList(pts) + + + + + +@ +\eject +\begin{thebibliography}{99} +\bibitem{1} nothing +\end{thebibliography} +\end{document} |