Package net.finmath.plots
Class Plot2DBarFX
- java.lang.Object
-
- net.finmath.plots.Plot2DBarFX
-
-
Constructor Summary
Constructors Constructor Description Plot2DBarFX()Plot2DBarFX(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.chart.Chartget()static Plot2DBarFXof(String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible)voidsaveAsJPG(File file, int width, int height)voidsaveAsPDF(File file, int width, int height)voidsaveAsPNG(File file, int width, int height)voidsaveAsSVG(File file, int width, int height)PlotsetIsLegendVisible(Boolean isLegendVisible)voidsetIsSeriesStacked(Boolean isSeriesStacked)Plot2DBarFXsetTitle(String title)Plot2DBarFXsetXAxisLabel(String xAxisLabel)Plot2DBarFXsetYAxisLabel(String yAxisLabel)Plot2DBarFXsetYAxisRange(Double min, Double max)PlotsetZAxisLabel(String zAxisLabel)voidshow()Plot2DBarFXupdate(List<PlotableCategories> plotables)
-
-
-
Constructor Detail
-
Plot2DBarFX
public Plot2DBarFX(List<PlotableCategories> plotables, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, Double yAxisLowerBound, Double yAxisUpperBound, Double yAxisTick, Boolean isLegendVisible)
-
Plot2DBarFX
public Plot2DBarFX(List<PlotableCategories> plotables)
-
Plot2DBarFX
public Plot2DBarFX()
-
-
Method Detail
-
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()
-
saveAsJPG
public void saveAsJPG(File file, int width, int height) throws IOException
- Specified by:
saveAsJPGin 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:
saveAsPDFin interfacePlot- Throws:
IOException
-
saveAsSVG
public void saveAsSVG(File file, int width, int height) throws IOException
- Specified by:
saveAsSVGin interfacePlot- Throws:
IOException
-
update
public Plot2DBarFX update(List<PlotableCategories> plotables)
-
setTitle
public Plot2DBarFX setTitle(String title)
-
setXAxisLabel
public Plot2DBarFX setXAxisLabel(String xAxisLabel)
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
public Plot2DBarFX setYAxisLabel(String yAxisLabel)
- Specified by:
setYAxisLabelin interfacePlot
-
setYAxisRange
public Plot2DBarFX setYAxisRange(Double min, Double max)
-
setZAxisLabel
public Plot setZAxisLabel(String zAxisLabel)
- Specified by:
setZAxisLabelin interfacePlot
-
setIsLegendVisible
public Plot setIsLegendVisible(Boolean isLegendVisible)
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
setIsSeriesStacked
public void setIsSeriesStacked(Boolean isSeriesStacked)
-
-