neuralib.plot.plot.scatter_binx_plot
- neuralib.plot.plot.scatter_binx_plot(ax, x, y, bins=10, *, order=1, linear_reg=True, bin_func='median', **kwargs)[source]
Regression to see the relationship between x and y
Dimension parameters:
N = number of sample points
- Parameters:
ax (Axes) –
Axesx (ndarray) – Numerical array. Array[float, N]
y (ndarray) – Numerical array. Array[float, N]
bins (int | Sequence[float] | str) – passed to
numpy.histogram()order (int) – If order is greater than 1, use numpy.polyfit to estimate a polynomial regression
linear_reg (bool) – Show linear correlation coefficient
bin_func (Literal['median', 'mean']) – Literal[‘median’, ‘mean’]. default is median
kwargs – additional args passed to
ax.set
- Returns: