java.lang.Object
net.finmath.plots.Plot2D
- All Implemented Interfaces:
Plot
Small convenient wrapper for JFreeChart line plot derived.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionPlot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator function)
Plot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator[] doubleUnaryOperators)
Plot2D(double xmin, double xmax, int numberOfPointsX, List<Named<DoubleUnaryOperator>> doubleUnaryOperators)
Plot2D(double xmin, double xmax, DoubleUnaryOperator function)
Plot2D(List<Plotable2D> plotables)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
setIsLegendVisible(Boolean isLegendVisible)
setXAxisLabel(String xAxisLabel)
setXAxisNumberFormat(NumberFormat xAxisNumberFormat)
setXRange(double xmin, double xmax)
setYAxisLabel(String yAxisLabel)
setYAxisNumberFormat(NumberFormat yAxisNumberFormat)
setYRange(double ymin, double ymax)
setZAxisLabel(String zAxisLabel)
void
show()
toString()
update(List<Plotable2D> plotables)
-
Constructor Details
-
Plot2D
-
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
-
Plot2D
-
Plot2D
-
-
Method Details
-
show
public void show() -
close
public void close() -
saveAsJPG
- Specified by:
saveAsJPG
in interfacePlot
- Throws:
IOException
-
saveAsPNG
- Throws:
IOException
-
saveAsPDF
- Specified by:
saveAsPDF
in interfacePlot
- Throws:
IOException
-
saveAsSVG
- Specified by:
saveAsSVG
in interfacePlot
- Throws:
IOException
-
update
-
setTitle
-
setXAxisLabel
- Specified by:
setXAxisLabel
in interfacePlot
-
setYAxisLabel
- Specified by:
setYAxisLabel
in interfacePlot
-
setZAxisLabel
- Specified by:
setZAxisLabel
in interfacePlot
-
setXAxisNumberFormat
-
setYAxisNumberFormat
-
setXRange
-
setYRange
-
setIsLegendVisible
- Specified by:
setIsLegendVisible
in interfacePlot
- Parameters:
isLegendVisible
- the isLegendVisible to set
-
toString
-