DataCategorical.plot_distrib
- DataCategorical.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 Barplot. 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.Bar. 
 
- Returns:
- go.Figure – Plotly figure with the barplot.