dyngpt.pl.plot_compare_bar

dyngpt.pl.plot_compare_bar(data1, data2, labels, axi_label, ax, x_ticks=[], legend_size=6, font_size=6, labelsize=5)[source]

Plot a comparison bar chart between two datasets.

Args:

data1 (array-like): The first dataset. data2 (array-like): The second dataset. labels (list): The labels for the two datasets. axi_label (str): The label for the x-axis. ax (matplotlib.axes.Axes): The axis object where the plot will be drawn. x_ticks (list, optional): List of custom tick positions for the x-axis. Defaults to []. legend_size (int, optional): Font size for the legend. Defaults to 6. font_size (int, optional): Font size for the plot. Defaults to 6. labelsize (int, optional): Font size for the axis labels. Defaults to 5.