plot(np.array([]))
๐ View as a histogram
plot
plot (x:numpy.ndarray, center:str='zero', max_s:int=10000, plt0:Any=True, ax:Optional[matplotlib.axes._axes.Axes]=None, ddof:int=0)
Type | Default | Details | |
---|---|---|---|
x | ndarray | Your data | |
center | str | zero | Center plot on zero , mean , or range |
max_s | int | 10000 | Draw up to this many samples. =0 to draw all |
plt0 | Any | True | Take zero values into account |
ax | Optional | None | Optionally, supply your own matplotlib axes. |
ddof | int | 0 | Apply bias correction to std |
Returns | PlotProxy |
1)
np.random.seed(= np.random.randn(100000)+3
x plot(x)
="range") plot(x, center
-3, center="mean") plot(x
-3, 0)) plot(np.minimum(x
-3, 0), plt0=0) plot(np.maximum(x
= plt.subplots(2, figsize=(6, 4))
fig, (ax1,ax2)
fig.tight_layout()=ax1)
plot(x, ax100), ax=ax2); plot(np.zeros(