- java.lang.Object
-
- net.finmath.plots.Plot2D
-
-
Constructor Summary
Constructors Constructor Description Plot2D(double xmin, double xmax, int numberOfPointsX, java.util.function.DoubleUnaryOperator function)Plot2D(double xmin, double xmax, int numberOfPointsX, java.util.function.Function<java.lang.Double,java.lang.Double> function)Plot2D(double xmin, double xmax, int numberOfPointsX, java.util.List<Named<java.util.function.DoubleUnaryOperator>> doubleUnaryOperators)Plot2D(double xmin, double xmax, java.util.function.DoubleUnaryOperator function)Plot2D(java.util.List<Plotable2D> plotables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsaveAsJPG(java.io.File file, int width, int height)voidsaveAsPDF(java.io.File file, int width, int height)voidsaveAsSVG(java.io.File file, int width, int height)PlotsetIsLegendVisible(java.lang.Boolean isLegendVisible)Plot2DsetTitle(java.lang.String title)Plot2DsetXAxisLabel(java.lang.String xAxisLabel)Plot2DsetXAxisNumberFormat(java.text.NumberFormat xAxisNumberFormat)Plot2DsetYAxisLabel(java.lang.String yAxisLabel)Plot2DsetYAxisNumberFormat(java.text.NumberFormat yAxisNumberFormat)PlotsetYRange(double ymin, double ymax)PlotsetZAxisLabel(java.lang.String zAxisLabel)voidshow()java.lang.StringtoString()Plot2Dupdate(java.util.List<Plotable2D> plotables)
-
-
-
Constructor Detail
-
Plot2D
public Plot2D(java.util.List<Plotable2D> plotables)
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, java.util.List<Named<java.util.function.DoubleUnaryOperator>> doubleUnaryOperators)
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, java.util.function.DoubleUnaryOperator function)
-
Plot2D
public Plot2D(double xmin, double xmax, java.util.function.DoubleUnaryOperator function)
-
Plot2D
public Plot2D(double xmin, double xmax, int numberOfPointsX, java.util.function.Function<java.lang.Double,java.lang.Double> function)
-
-
Method Detail
-
saveAsJPG
public void saveAsJPG(java.io.File file, int width, int height) throws java.io.IOException
-
saveAsPDF
public void saveAsPDF(java.io.File file, int width, int height) throws java.io.IOException
-
saveAsSVG
public void saveAsSVG(java.io.File file, int width, int height) throws java.io.IOException
-
update
public Plot2D update(java.util.List<Plotable2D> plotables)
-
setXAxisLabel
public Plot2D setXAxisLabel(java.lang.String xAxisLabel)
- Specified by:
setXAxisLabelin interfacePlot
-
setYAxisLabel
public Plot2D setYAxisLabel(java.lang.String yAxisLabel)
- Specified by:
setYAxisLabelin interfacePlot
-
setZAxisLabel
public Plot setZAxisLabel(java.lang.String zAxisLabel)
- Specified by:
setZAxisLabelin interfacePlot
-
setXAxisNumberFormat
public Plot2D setXAxisNumberFormat(java.text.NumberFormat xAxisNumberFormat)
-
setYAxisNumberFormat
public Plot2D setYAxisNumberFormat(java.text.NumberFormat yAxisNumberFormat)
-
setYRange
public Plot setYRange(double ymin, double ymax)
-
setIsLegendVisible
public Plot setIsLegendVisible(java.lang.Boolean isLegendVisible)
- Specified by:
setIsLegendVisiblein interfacePlot- Parameters:
isLegendVisible- the isLegendVisible to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-