import java.awt.*; public class BasicLinePlot extends Canvas { double[] x,y,xgrid,ygrid; int i,nper; int ixleft,ixright,iytop,iybottom,ih,iw,ihalftic,iRise,fmHeight; double xleft,xright,ytop,ybottom; double lmarg = 0.10,rmarg = 0.05,tmarg = 0.10,bmarg = 0.10,halftic = 0.0035; double ixintercept,ixslope,iyintercept,iyslope; String thingy; public BasicLinePlot() {} String mainTitle; public void newXY(double[] x,double[] y,double[] xgrid,double[] ygrid,String mainTitle) { if(x.length != y.length) { System.err.println("Error: x and y must have the same length"); System.exit(-1);} this.x = new double[x.length]; this.y = new double[x.length]; for(i=0;i