plot_xy_hist

The plot_xy_hist method creates XY histograms using data from Deephaven tables or arrays.

Syntax

Parameters

ParameterTypeDescription
series_namestr

The name (as a String) you want to use to identify the series on the plot itself.

tUnion[Table, SelectableDataSet]

The table (or other selectable data set) that holds the data to be plotted.

xUnion[str, list[int], list[float], list[DateTime]]

The name of the column containing the discrete values. This parameter is a list only when data is not sourced from a table; otherwise, it will be an array.

nbinsint

The number of intervals (bins) to use in the chart.

xmin optionalfloat

The minimum value in the X column to plot.

xmax optionalfloat

The maximum value in the X column to plot.

Returns

A histogram.

Examples

The following example plots data from a Deephaven table.

The following example plots data from an array.