Mercurial > hg > may
comparison yetilab/plot/plot.yeti @ 268:b5cd42899526
Add vector plot type
author | Chris Cannam |
---|---|
date | Thu, 23 May 2013 14:39:18 +0100 |
parents | 67ff37b03856 |
children |
comparison
equal
deleted
inserted
replaced
267:66346df10f70 | 268:b5cd42899526 |
---|---|
1 module yetilab.plot.plot; | 1 module yetilab.plot.plot; |
2 | |
3 vec = load yetilab.vector.vector; | |
2 | 4 |
3 import org.jzy3d.plot3d.builder: Mapper; | 5 import org.jzy3d.plot3d.builder: Mapper; |
4 import org.jzy3d.maths: Range, Coord3d; | 6 import org.jzy3d.maths: Range, Coord3d; |
5 import org.jzy3d.chart: Chart, ChartLauncher; | 7 import org.jzy3d.chart: Chart, ChartLauncher; |
6 import org.jzy3d.plot3d.builder: Builder; | 8 import org.jzy3d.plot3d.builder: Builder; |
100 plotMatrix chart matrix; | 102 plotMatrix chart matrix; |
101 Curve curve: | 103 Curve curve: |
102 plotCurve chart depth curve; | 104 plotCurve chart depth curve; |
103 Series series: | 105 Series series: |
104 plotSeries chart depth series; | 106 plotSeries chart depth series; |
107 Vector vector: | |
108 plotSeries chart depth | |
109 { start = 0, step = 1, values = vec.list vector }; | |
105 other: | 110 other: |
106 failWith "Unable to plot \(other)"; | 111 failWith "Unable to plot \(other)"; |
107 esac; | 112 esac; |
108 depth := depth + 1; | 113 depth := depth + 1; |
109 done; | 114 done; |