// BeanShell example plot // Requires v1.49u or later img = IJ.openImage("http://imagej.nih.gov/ij/images/blobs.gif"); img.setRoi(new Line(56,64,90,15)); pp = new ProfilePlot(img); y1 = pp.getProfile(); n = y1.length; x = new double[n]; for (i=0; i