java.lang.Object
net.finmath.plots.Plot2DFX
- All Implemented Interfaces:
Plot
Small convenient wrapper for Java FX line plot.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionPlot2DFX()
Plot2DFX(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator function)
Plot2DFX(double xmin, double xmax, int numberOfPointsX, List<Named<DoubleUnaryOperator>> doubleUnaryOperators)
Plot2DFX(List<Plotable2D> plotables)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
javafx.scene.chart.Chart
get()
setIsLegendVisible(Boolean isLegendVisible)
setXAxisLabel(String xAxisLabel)
setYAxisLabel(String yAxisLabel)
setYAxisRange(Double min, Double max)
setZAxisLabel(String zAxisLabel)
void
show()
update(List<Plotable2D> plotables)
-
Constructor Details
-
Plot2DFX
-
Plot2DFX
-
Plot2DFX
public Plot2DFX(double xmin, double xmax, int numberOfPointsX, List<Named<DoubleUnaryOperator>> doubleUnaryOperators) -
Plot2DFX
public Plot2DFX()
-
-
Method Details
-
show
public void show() -
close
public void close() -
get
public javafx.scene.chart.Chart get() -
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
-
setYAxisRange
-
setZAxisLabel
- Specified by:
setZAxisLabel
in interfacePlot
-
setIsLegendVisible
- Specified by:
setIsLegendVisible
in interfacePlot
- Parameters:
isLegendVisible
- the isLegendVisible to set
-