|
| import directives: | import flanagan.plot.PlotGraph; |
| Constructor | Single curve | public void PlotGraph(double[][] data) | obligatory | Class: PlotGraph |
| Single or Several curves | public void PlotGraph(double[] xData, double[] yData) | |||
|
Set up and display the graph | Initialise data array | public static double[][] data(int nCurves, int nPoints) | optional but recommended for multiple curves of different length | Class: Plot |
| public static void setDataFillValue(double dataFillValue) | optional | Class: Plot | ||
| public static double getDataFillvalue() | optional | Class: Plot | ||
| Plot and show graph | public void plot() | obligatory | Class: PlotGraph | |
| Enter graph title | public void setGraphTitle(String gTitle) | optional but recommended | Class: Plot | |
| public void setGraphTitle2(String gTitle2) | optional | Class: Plot | ||
| Enter the abscissa axis (x axis) legend | public void setXaxisLegend(String xLeg) | optional but recommended | Class: Plot | |
| Enter name of the abscissa axis (x axis) units | public void setXaxisUnitsName(String xUnits) | optional but recommended | Class: Plot | |
| Enter the ordinate axis (y axis) legend | public void setYaxisLegend(String yLeg) | optional but recommended | Class: Plot | |
| Enter name of the ordinate axis (y axis) units | public void setYaxisUnitsName(String yUnits) | optional but recommended | Class: Plot | |
| Enter the abscissa axis (x axis) legend | public void setXaxisLegend(String xLeg) | optional but recommended | Class: Plot | |
| Enter error bars | public void setErrorBars(int nc, double[] err) | optional | Class: Plot | |
|
Line options | Reset line options | public void setLine(int lineOpt) | optional | Class: Plot |
| public void setLine(int[] lineOpt) | ||||
| Get line options | public int[] getLine() | optional | Class: Plot | |
| Reset interpolation number | public void setNiPoints(int niPoints) | optional | Class: Plot | |
| Get interpolation number | public int getNiPoints() | optional | Class: Plot | |
| Reset dash length | public void setDashLength(int dashLength) | optional | Class: Plot | |
| public void setDashLength(int[] dashLength) | ||||
| Get dash length | public int[] getDashLength() | optional | Class: Plot | |
|
Point options | Reset point symbol | public void setPoint(int pointOpt) | optional | Class: Plot |
| public void setPoint(int[] pointOpt) | ||||
| Get point symbol | public int[] getPoint() | optional | Class: Plot | |
| Reset point size | public void setPointSize(int pointSize) | optional | Class: Plot | |
| public void setPointSize(int[] pointSize) | ||||
| Get point size | public int[] getPointSize() | optional | Class: Plot | |
|
Offset option | Reset the abscissa axis (x axis) offset option | public void setNoXoffset(boolean noXoffset) | optional | Class: Plot |
| Get the abscissa axis (x axis) offset option | public double getNoXoffset() | optional | Class: Plot | |
| Reset the ordinate axis (y axis) offset option | public void setNoYoffset(boolean noYoffset) | optional | Class: Plot | |
| Get the ordinate axis (y axis) offset option | public double getNoYoffset() | optional | Class: Plot | |
| Reset the abscissa and ordinate axes offset options | public void setNoOffset(boolean noXorYoffset) | optional | Class: Plot | |
|
High and low values on each axis | Reset the abscissa axis (x axis) lowest value | public void setXlowFac(double xLowFac) | optional | Class: Plot |
| Get the abscissa axis (x axis) lowest value factor | public double getXlowFac() | optional | Class: Plot | |
| Reset the ordinate axis (y axis) lowest value | public void setYlowFac(double yLowFac) | optional | Class: Plot | |
| Get the ordinate axis (y axis) lowest value factor | public double getYlowFac() | optional | Class: Plot | |
| Get the minimum value of the abscissa axis (x axis) | public double getXmin() | optional | Class: Plot | |
| Get the maximum value of the abscissa axis (x axis) | public double getXmax() | optional | Class: Plot | |
| Get the minimum value of the ordinate axis (y axis) | public double getYmin() | optional | Class: Plot | |
| Get the maximum value of the ordinate axis (y axis) | public double getYmax() | optional | Class: Plot | |
|
Rescale the graph | Rescale the abscissae (x dimension) | public void rescaleX(double xScaleFac) | optional | Class: PlotGraph |
| Rescale the ordinates (y dimension) | public void rescaleY(double yScaleFac) | optional | Class: PlotGraph | |
| Reset the abscisa axis (x axis) pixel length | public void setXaxisLen(int xLen) | optional | Class: Plot | |
| Get the abscissa axis (x axis) pixel length | public int setXaxisLen() | optional | Class: Plot | |
| Reset the ordinate axis(y axis) pixel length | public void setYaxisLen(int yLen) | optional | Class: Plot | |
| Get the ordinate axis (y axis) pixel length | public int getYaxisLen() | optional | Class: Plot | |
|
Reposition the graph | Reset the pixel start of the abscissa axis (x axis) | public void setXlow(int xLow) | optional | Class: Plot |
| Get the pixel start of the abscissa axis (x axis) | public int getXlow() | optional | Class: Plot | |
| Reset the pixel top of the ordinate axis (y axis) | public void setYhigh(int yTop) | optional | Class: Plot | |
| Get the pixel top of the ordinate axis (y axis) | public int getYhigh() | optional | Class: Plot | |
|
Window options | Window closing option | public void setCloseChoice(int closeChoice) | optional | Class: PlotGraph |
| Get window closing option | public int getCloseChoice() | optional | Class: PlotGraph | |
| Reset height of graph window | public void setGraphHeight(int graphHeight) | optional | Class: PlotGraph | |
| Get height of graph window | public int getGraphHeight() | optional | Class: PlotGraph | |
| Reset width of graph window | public void setGraphWidth(int graphWidth) | optional | Class: PlotGraph | |
| Get width of graph window | public int getGraphWidth() | optional | Class: PlotGraph | |
| Ending the application | End the program | public void.endProgram() | optional | Class: PlotGraph |