Package net.finmath.plots
Class Plot2D
- java.lang.Object
-
- net.finmath.plots.Plot2D
-
-
Constructor Summary
Constructors Constructor Description Plot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator function)Plot2D(double xmin, double xmax, int numberOfPointsX, List<Named<DoubleUnaryOperator>> doubleUnaryOperators)Plot2D(double xmin, double xmax, DoubleUnaryOperator function)Plot2D(List<Plotable2D> plotables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsaveAsJPG(File file, int width, int height)voidsaveAsPDF(File file, int width, int height)voidsaveAsSVG(File file, int width, int height)PlotsetIsLegendVisible(Boolean isLegendVisible)Plot2DsetTitle(String title)Plot2DsetXAxisLabel(String xAxisLabel)Plot2DsetxAxisNumberFormat(NumberFormat xAxisNumberFormat)Plot2DsetYAxisLabel(String yAxisLabel)Plot2DsetyAxisNumberFormat(NumberFormat yAxisNumberFormat)PlotsetYRange(double ymin, double ymax)PlotsetZAxisLabel(String zAxisLabel)voidshow()StringtoString()Plot2Dupdate(List<Plotable2D> plotables)
-
-
-
Constructor Detail
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, DoubleUnaryOperator function)
-
Plot2D
public Plot2D(double xmin, double xmax, DoubleUnaryOperator function)
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, List<Named<DoubleUnaryOperator>> doubleUnaryOperators)
-
Plot2D
public Plot2D(List<Plotable2D> plotables)
-
-
Method Detail
-
saveAsJPG
public void saveAsJPG(File file, int width, int height) throws IOException
- Specified by:
saveAsJPGin interfacePlot- 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 Plot2D update(List<Plotable2D> plotables)
-
setXAxisLabel
public Plot2D setXAxisLabel(String xAxisLabel)
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
public Plot2D setYAxisLabel(String yAxisLabel)
- Specified by:
setYAxisLabelin interfacePlot
-
setZAxisLabel
public Plot setZAxisLabel(String zAxisLabel)
- Specified by:
setZAxisLabelin interfacePlot
-
setxAxisNumberFormat
public Plot2D setxAxisNumberFormat(NumberFormat xAxisNumberFormat)
-
setyAxisNumberFormat
public Plot2D setyAxisNumberFormat(NumberFormat yAxisNumberFormat)
-
setYRange
public Plot setYRange(double ymin, double ymax)
-
setIsLegendVisible
public Plot setIsLegendVisible(Boolean isLegendVisible)
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
-