neuralib.plot.plot.scatter_histplot
- neuralib.plot.plot.scatter_histplot(x, y, bins=15, *, linear_reg=True, output=None, **kwargs)[source]
plot the linear correlation scatter and histogram between two variables
Dimension parameters:
N = number of sample points
- Parameters:
x (ndarray) – numerical array x. Array[float, N]
y (ndarray) – numerical array y. Array[float, N]
bins (int | Sequence[float] | str) – passed to
numpy.histogram()linear_reg (bool) – If show correlation coefficient
output (Path | None) – Figure save output
kwargs – additional args pass through
ax.set()
- Returns: