java.lang.Object
net.finmath.plots.Plot2DBarFX
- All Implemented Interfaces:
Plot
Small convenient wrapper for Java FX line plot.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionPlot2DBarFX(List<PlotableCategories> plotables)Plot2DBarFX(List<PlotableCategories> plotables, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, Double yAxisLowerBound, Double yAxisUpperBound, Double yAxisTick, Boolean isLegendVisible) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()javafx.scene.chart.Chartget()static Plot2DBarFXof(String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible)static Plot2DBarFXof(String name, String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible)setIsLegendVisible(Boolean isLegendVisible)voidsetIsSeriesStacked(Boolean isSeriesStacked)setXAxisLabel(String xAxisLabel)setYAxisLabel(String yAxisLabel)setYAxisRange(Double min, Double max)setZAxisLabel(String zAxisLabel)voidshow()update(List<PlotableCategories> plotables)
-
Constructor Details
-
Plot2DBarFX
public Plot2DBarFX(List<PlotableCategories> plotables, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, Double yAxisLowerBound, Double yAxisUpperBound, Double yAxisTick, Boolean isLegendVisible) -
Plot2DBarFX
-
Plot2DBarFX
public Plot2DBarFX()
-
-
Method Details
-
of
public static Plot2DBarFX of(String name, String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible) -
of
public static Plot2DBarFX of(String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible) -
get
public javafx.scene.chart.Chart get() -
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
-
setYAxisRange
-
setZAxisLabel
- Specified by:
setZAxisLabelin interfacePlot
-
setIsLegendVisible
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
setIsSeriesStacked
-