File: plotting15.mac

package info (click to toggle)
maxima 5.47.0-9
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 193,104 kB
  • sloc: lisp: 434,678; fortran: 14,665; tcl: 10,990; sh: 4,577; makefile: 2,763; ansic: 447; java: 328; python: 262; perl: 201; xml: 60; awk: 28; sed: 15; javascript: 2
file content (8 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
display2d:false$
with_stdout ("data.txt", for x:0 thru 10 do print (x, x^2, x^3))$
data: read_matrix ("data.txt")$
plot2d ([discrete,transpose(data)[2],transpose(data)[3]], [style,points],
  [point_type,diamond], [color,red], [pdf_file,"./plotting15.pdf"]);
plot2d ([discrete,transpose(data)[2],transpose(data)[3]], [style,points],
  [point_type,diamond], [color,red], [png_file,"./plotting15.png"]);