DataReal.plot_distrib

DataReal.plot_distrib(fig: Figure, data: ndarray | DataFrame, cols: str | List[str] | None = None, name_plot: str = '', pos: Tuple[int, int] = (1, 1), downsamp: float = 2, **kwargs) Figure[source]

Plots the distribution of the passed data as a Histogram. If the data is multidimensional, the data is flattened before plotting.

Parameters:
  • fig (go.Figure) – Plotly figure to plot on.

  • data (Union[np.ndarray, pd.DataFrame]) – Data to plot. If a DataFrame is passed, the columns specified by cols are plotted.

  • cols (List[str], optional, default=None) – Columns of the DataFrame to plot, by default None. Only used if data is a DataFrame.

  • name_plot (str, optional, default=””) – Name of the plot.

  • pos (Tuple[int, int], optional, default=(1, 1)) – Position of the plot in the figure.

  • downsamp (float, optional, default=2) – Downsampling factor of the data.

  • kwargs – Additional keyword arguments passed to plotly.graph_objects.Histogram.

Returns:

go.Figure – Plotly figure with the histogram.