dyngpt.pl.plot_scatter_two¶
- dyngpt.pl.plot_scatter_two(ax, data1, data2, label_vals, stas_type, color='#C3E6F7', y_ticks=[], edgecolor='#1291C1', linewidth1=0.5, linewidth2=0.5, bold_point=[3])[source]¶
Plot a scatter plot of two datasets (data1 and data2) with a reference line and optional highlighting of specific points.
- 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. 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 “#C3E6F7”. y_ticks (list, optional): The tick values for the y-axis. Defaults to []. edgecolor (str, optional): The edge color of the scatter plot points. Defaults to ‘#1291C1’. linewidth1 (float, optional): The width of the reference line. Defaults to 0.5. linewidth2 (float, optional): The width of the highlighted points. Defaults to 0.5. bold_point (list, optional): Indices of points to be highlighted. Defaults to [3].