diff yetilab/plot/plot.yeti @ 110:f039eec93d50

Add lookups for known (but not installed) plugins to vamp module
author Chris Cannam
date Sat, 13 Apr 2013 22:00:09 +0100
parents 8f6c2f87dc35
children 90dca6156662
line wrap: on
line diff
--- a/yetilab/plot/plot.yeti	Thu Apr 11 12:50:47 2013 +0100
+++ b/yetilab/plot/plot.yeti	Sat Apr 13 22:00:09 2013 +0100
@@ -38,7 +38,7 @@
     xrange = new Range(1, size.columns - 1);
     yrange = new Range(1, size.rows - 1);
     grid = new OrthonormalGrid(xrange, size.columns, yrange, size.rows);
-    surface = Builder#buildOrthonormal(grid, mapper);
+    surface = Builder#buildOrthonormalBig(grid, mapper); //??? big?
     surface#setFaceDisplayed(true);
     surface#setWireframeDisplayed(true);
     surface#setWireframeColor(Color#BLACK);
@@ -46,5 +46,13 @@
     chart#getScene()#getGraph()#add(surface);
     ChartLauncher#openChart(chart));
 
-{ plot }
+plotStructure structure =
+    case structure of
+    Grid matrix:
+        plot matrix;
+    //!!!
+    _: failWith "Cannot plot this structure (only grids implemented so far)";
+    esac;
 
+{ plot, plotStructure }
+