dyngpt.pl.plot_scatter¶
- dyngpt.pl.plot_scatter(ax, data1, data2, data_max, species_name, label_vals, stas_type, color='#000000', y_ticks=[], latex_flag=False, s=2, edgecolor='skyblue', font_size=6, labelsize=5, legend_size=5)[source]¶
Plot a scatter plot of two datasets on the given axes, with the option to customize appearance and labels.
- Args:
ax (matplotlib.axes.Axes): The axes to plot the scatter plot on. data1 (pandas.DataFrame): The first dataset to be plotted. data2 (pandas.DataFrame): The second dataset to be plotted. data_max (float): The maximum value used to set the axis limits. species_name (str): The name of the species to be used for labeling. label_vals (list): The values used for labeling the axes. stas_type (str): The type of statistics to display on the axes labels. color (str, optional): The color of the points in the scatter plot. Defaults to “#000000”. y_ticks (list, optional): The tick values for the y-axis. Defaults to []. latex_flag (bool, optional): Whether to display the species name as LaTeX-formatted. Defaults to False. s (int, optional): The size of the scatter plot points. Defaults to 2. edgecolor (str, optional): The edge color of the scatter plot points. Defaults to ‘skyblue’. font_size (int, optional): The font size for axis labels. Defaults to 6. labelsize (int, optional): The font size for labels. Defaults to 5. legend_size (int, optional): The font size for the legend. Defaults to 5.