Package io.deephaven.plot.datasets.xy
Interface XYDataSeriesFunction
- All Superinterfaces:
DataSeries
,Serializable
,Series
,XYDataSeries
- All Known Subinterfaces:
Figure
,XYDataSeriesFunctionInternal
- All Known Implementing Classes:
FigureImpl
,FigureWidget
,ScatterPlotMatrix
,XYDataSeriesFunctionImpl
XYDataSeries
based on a function.
By default, this calculates at least 200 data points inside the plot's existing range. The number of points can be
increased for a finer grained plot, or decreased if less resolution is needed. The points are recomputed as the
Chart
's x-range changes.-
Method Summary
Modifier and TypeMethodDescriptionfuncNPoints
(int npoints) Sets the number of data points in this dataset.funcRange
(double xmin, double xmax) Sets the data range for this series.funcRange
(double xmin, double xmax, int npoints) Sets the data range for this series.Methods inherited from interface io.deephaven.plot.datasets.DataSeries
errorBarColor, errorBarColor, errorBarColor, gradientVisible, lineColor, lineColor, lineColor, lineStyle, linesVisible, pointColor, pointColor, pointColor, pointLabel, pointLabelFormat, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, toolTipPattern, xToolTipPattern, yToolTipPattern
Methods inherited from interface io.deephaven.plot.datasets.xy.XYDataSeries
pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorInteger, pointLabel, pointLabel, pointLabel, pointLabel, pointShape, pointShape, pointShape, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize
-
Method Details
-
funcRange
Sets the data range for this series.- Parameters:
xmin
- range minimumxmax
- range maximum- Returns:
- this data series with the new range
-
funcRange
Sets the data range for this series.- Parameters:
xmin
- range minimumxmax
- range maximumnpoints
- number of data points- Returns:
- this data series with the new range
- Throws:
IllegalArgumentException
-xmin
must not be less thanxmax
.xmin
andxmax
must be finite. SeeNumeric.isFinite(java.lang.Byte)
.npoints
must non-negative.
-
funcNPoints
Sets the number of data points in this dataset.- Parameters:
npoints
- number of points- Returns:
- this data series with the specified number of points.
- Throws:
IllegalArgumentException
-npoints
must be non-negative.
-