plot
The plot method creates XY series plots using data from tables.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| seriesName | String | The name you want to use to identify the series on the plot itself. |
| t | Table | The table. |
| sds | SelectableDataSet | Selectable data set (e.g. OneClick filterable table). |
| x | String | The column in |
| x | double[] | X values. |
| x | float[] | X values. |
| x | int[] | X values. |
| x | long[] | X values. |
| x | short[] | X values. |
| x | IndexableNumericData[] | X values. |
| x | DateTime[] | X values. |
| x | Date[] | X values. |
| x | List<T> | X values. |
| x | <T>[] | X values. |
| y | String | The column in |
| y | double[] | Y values. |
| y | float[] | Y values. |
| y | int[] | Y values. |
| y | long[] | Y values. |
| y | short[] | Y values. |
| y | IndexableNumericData[] | Y values. |
| y | DateTime[] | Y values. |
| y | Date[] | Y values. |
| y | List<T> | Y values. |
| y | <T>[] | Y values. |
| hasXTimeAxis | boolean | Whether or not to treat the X values as time data. |
| hasYTimeAxis | boolean | Whether or not to treat the Y values as time data. |
| function | groovy.lang.CLosure<T> | Function to plot. |
| function | DoubleUnaryOperator | Function to plot. |
Returns
An XY series plot with a single axes.
Examples
The following example plots data from a Deephaven table.