6.5.2.2.4.1.3. statsmodels.sandbox.nonparametric.dgp_examples.UnivariateFunc1.plot

UnivariateFunc1.plot(scatter=True, ax=None)

plot the mean function and optionally the scatter of the sample

Parameters:

scatter: bool

If true, then add scatterpoints of sample to plot.

ax : None or matplotlib axis instance

If None, then a matplotlib.pyplot figure is created, otherwise the given axis, ax, is used.

Returns:

fig : matplotlib figure

This is either the created figure instance or the one associated with ax if ax is given.