Called by the constructor to generate the image the plot will be drawn on. This is a static method because constructors cannot call instance methods.
(String title, String xLabel, String yLabel, float[] xValues, float[] yValues)
| 199 | /** Called by the constructor to generate the image the plot will be drawn on. |
| 200 | This is a static method because constructors cannot call instance methods. */ |
| 201 | static ImagePlus createImage(String title, String xLabel, String yLabel, float[] xValues, float[] yValues) { |
| 202 | staticPlot = new Plot(title, xLabel, yLabel, xValues, yValues); |
| 203 | return new ImagePlus(title, staticPlot.getBlankProcessor()); |
| 204 | } |
| 205 | |
| 206 | /** Sets the x-axis and y-axis range. |
| 207 | * @deprecated use the corresponding method of the Plot class */ |
no test coverage detected