dyngpt.pl.plot_boxplot

dyngpt.pl.plot_boxplot(ax, data, species_name, y_ticks=[], latex_flag=False, showfliers=True, palette_color=['#17becf'], linewidth=0.5, width=0.2, line_color='skyblue', markersize=1.5, line_colors=[], font_size=6, labelsize=5, legend_size=5)[source]

Plot a boxplot with customization options for states and formatting.

Args:

ax (matplotlib.axes.Axes): The axes on which to plot the boxplot. data (pandas.DataFrame): The data containing the species information. species_name (str or list): The name or list of species to plot. y_ticks (list, optional): Specific y-ticks to display. Defaults to an empty list. latex_flag (bool, optional): Whether to format labels in LaTeX. Defaults to False. showfliers (bool, optional): Whether to show outliers in the boxplot. Defaults to True. palette_color (list, optional): List of colors for the boxplot. Defaults to [‘#17becf’]. linewidth (float, optional): Line width for the boxplot. Defaults to 0.5. width (float, optional): Width of the boxplot boxes. Defaults to 0.2. line_color (str, optional): Color for the boxplot lines. Defaults to “skyblue”. markersize (float, optional): Size of the markers for outliers. Defaults to 1.5. line_colors (list, optional): List of line colors for the boxplot. Defaults to an empty list. font_size (int, optional): Font size for axis labels. Defaults to 6. labelsize (int, optional): Font size for tick labels. Defaults to 5. legend_size (int, optional): Font size for legend. Defaults to 5.