Jump to content

Plot coordinate pairs: Difference between revisions

Line 568:
close_graph();
;;</lang>
 
Using the [http://forge.ocamlcore.org/projects/archimedes/ Archimedes] library, one can write:
[[Image:Archimedes.png|300px|thumb|right|Archimedes plot (graphics output).]]
<lang ocaml>
module A = Archimedes
 
let y = [|2.7; 2.8; 31.4; 38.1; 58.0; 76.2; 100.5; 130.0; 149.3; 180.0|]
 
let () =
let vp = A.init [] in
A.Axes.box vp;
A.set_color vp A.Color.red;
A.Array.y vp y;
A.close vp
</lang>
 
=={{header|Octave}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.