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 TypeMethodDescriptionvoidclose()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)voidshow()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:
saveAsJPGin interfacePlot- Throws:
IOException
-
saveAsPNG
- Throws:
IOException
-
saveAsPDF
- Specified by:
saveAsPDFin interfacePlot- Throws:
IOException
-
saveAsSVG
- Specified by:
saveAsSVGin interfacePlot- Throws:
IOException
-
update
-
setTitle
-
setXAxisLabel
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
- Specified by:
setYAxisLabelin interfacePlot
-
setZAxisLabel
- Specified by:
setZAxisLabelin interfacePlot
-
setXAxisNumberFormat
-
setYAxisNumberFormat
-
setXRange
-
setYRange
-
setIsLegendVisible
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
toString
-