- 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()
void
saveAsJPG(File file, int width, int height)
void
saveAsPDF(File file, int width, int height)
void
saveAsPNG(File file, int width, int height)
void
saveAsSVG(File file, int width, int height)
Plot
setIsLegendVisible(Boolean isLegendVisible)
Plot2D
setTitle(String title)
Plot2D
setXAxisLabel(String xAxisLabel)
Plot2D
setXAxisNumberFormat(NumberFormat xAxisNumberFormat)
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 void saveAsJPG(File file, int width, int height) throws IOException
- Specified by:
saveAsJPG
in interfacePlot
- Throws:
IOException
-
saveAsPNG
public void saveAsPNG(File file, int width, int height) throws IOException
- Throws:
IOException
-
saveAsPDF
public void saveAsPDF(File file, int width, int height) throws IOException
- Specified by:
saveAsPDF
in interfacePlot
- Throws:
IOException
-
saveAsSVG
public void 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)
-
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
-
-