- 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 void
close()
Plot2D
saveAsJPG(File file, int width, int height)
Plot2D
saveAsPDF(File file, int width, int height)
Plot2D
saveAsPNG(File file, int width, int height)
Plot2D
saveAsSVG(File file, int width, int height)
Plot
setIsLegendVisible(Boolean isLegendVisible)
Plot2D
setTitle(String title)
Plot2D
setXAxisLabel(String xAxisLabel)
Plot2D
setXAxisNumberFormat(NumberFormat xAxisNumberFormat)
Plot2D
setXRange(double xmin, double xmax)
Plot2D
setYAxisLabel(String yAxisLabel)
Plot2D
setYAxisNumberFormat(NumberFormat yAxisNumberFormat)
Plot2D
setYRange(double ymin, double ymax)
Plot
setZAxisLabel(String zAxisLabel)
void
show()
String
toString()
Plot2D
update(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:
saveAsJPG
in 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:
saveAsPDF
in interfacePlot
- Throws:
IOException
-
saveAsSVG
public Plot2D saveAsSVG(File file, int width, int height) throws IOException
- Specified by:
saveAsSVG
in interfacePlot
- Throws:
IOException
-
update
public Plot2D update(List<Plotable2D> plotables)
-
setXAxisLabel
public Plot2D setXAxisLabel(String xAxisLabel)
- Specified by:
setXAxisLabel
in interfacePlot
-
setYAxisLabel
public Plot2D setYAxisLabel(String yAxisLabel)
- Specified by:
setYAxisLabel
in interfacePlot
-
setZAxisLabel
public Plot setZAxisLabel(String zAxisLabel)
- Specified by:
setZAxisLabel
in 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:
setIsLegendVisible
in interfacePlot
- Parameters:
isLegendVisible
- the isLegendVisible to set
-
-