- java.lang.Object
-
- net.finmath.plots.Plot2D
-
-
Constructor Summary
Constructors Constructor Description Plot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator function)Plot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator[] doubleUnaryOperators)Plot2D(double xmin, double xmax, int numberOfPointsX, Function<Double,Double> function)Plot2D(double xmin, double xmax, int numberOfPointsX, List<Named<DoubleUnaryOperator>> doubleUnaryOperators)Plot2D(double xmin, double xmax, DoubleUnaryOperator function)Plot2D(List<Plotable2D> plotables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Plot2DsaveAsJPG(File file, int width, int height)Plot2DsaveAsPDF(File file, int width, int height)Plot2DsaveAsPNG(File file, int width, int height)Plot2DsaveAsSVG(File file, int width, int height)PlotsetIsLegendVisible(Boolean isLegendVisible)Plot2DsetTitle(String title)Plot2DsetXAxisLabel(String xAxisLabel)Plot2DsetXAxisNumberFormat(NumberFormat xAxisNumberFormat)Plot2DsetXRange(double xmin, double xmax)Plot2DsetYAxisLabel(String yAxisLabel)Plot2DsetYAxisNumberFormat(NumberFormat yAxisNumberFormat)Plot2DsetYRange(double ymin, double ymax)PlotsetZAxisLabel(String zAxisLabel)voidshow()StringtoString()Plot2Dupdate(List<Plotable2D> plotables)
-
-
-
Constructor Detail
-
Plot2D
public Plot2D(List<Plotable2D> plotables)
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, List<Named<DoubleUnaryOperator>> doubleUnaryOperators)
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator[] doubleUnaryOperators)
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator function)
-
Plot2D
public Plot2D(double xmin, double xmax, DoubleUnaryOperator function)
-
-
Method Detail
-
saveAsJPG
public Plot2D saveAsJPG(File file, int width, int height) throws IOException
- Specified by:
saveAsJPGin interfacePlot- Throws:
IOException
-
saveAsPNG
public Plot2D saveAsPNG(File file, int width, int height) throws IOException
- Throws:
IOException
-
saveAsPDF
public Plot2D saveAsPDF(File file, int width, int height) throws IOException
- Specified by:
saveAsPDFin interfacePlot- Throws:
IOException
-
saveAsSVG
public Plot2D saveAsSVG(File file, int width, int height) throws IOException
- Specified by:
saveAsSVGin interfacePlot- Throws:
IOException
-
update
public Plot2D update(List<Plotable2D> plotables)
-
setXAxisLabel
public Plot2D setXAxisLabel(String xAxisLabel)
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
public Plot2D setYAxisLabel(String yAxisLabel)
- Specified by:
setYAxisLabelin interfacePlot
-
setZAxisLabel
public Plot setZAxisLabel(String zAxisLabel)
- Specified by:
setZAxisLabelin interfacePlot
-
setXAxisNumberFormat
public Plot2D setXAxisNumberFormat(NumberFormat xAxisNumberFormat)
-
setYAxisNumberFormat
public Plot2D setYAxisNumberFormat(NumberFormat yAxisNumberFormat)
-
setXRange
public Plot2D setXRange(double xmin, double xmax)
-
setYRange
public Plot2D setYRange(double ymin, double ymax)
-
setIsLegendVisible
public Plot setIsLegendVisible(Boolean isLegendVisible)
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
-