dyngpt.pl.plot_violin¶
- dyngpt.pl.plot_violin(ax, data, true_values, color='#C9CACA', edgecolor='skyblue', legend_flag=False, legend_size=6, font_size=6, labelsize=5, log_flag=True)[source]¶
Plot a violin plot with overlaid horizontal lines indicating the true values. Optionally includes a legend.
- Args:
ax (matplotlib.axes.Axes): The axes on which to plot the violin plot. data (array-like): The data to plot in the violin plot. true_values (array-like): The true values to be highlighted with horizontal lines. color (str, optional): The fill color for the violins, defaults to “#C9CACA”. edgecolor (str, optional): The edge color for the violins, defaults to “skyblue”. legend_flag (bool, optional): Whether to display the legend, defaults to False. legend_size (int, optional): Font size for the legend, defaults to 6. font_size (int, optional): Font size for the axis labels, defaults to 6. labelsize (int, optional): Font size for the tick labels, defaults to 5. log_flag (bool, optional): Whether to log-transform the y-axis, defaults to True.
- Returns:
None