Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.97 KB

bernofig.md

File metadata and controls

37 lines (28 loc) · 1.97 KB

Bernoulli Distribution

bernofig

Parameter Default Description
p 0.5. The probability of a success on an individual trial.
size 1000 The Number of random variables.
fig_w 8 Matplotlib figsize width.
fig_l 8 Matplotlib figsize length.
grid True Use 'True' or 'False' to show the grid.
color 'skyblue' The color to fill.
linewidth 10 The line width.
alpha 1 The alpha(transparency) value for filling color.
title 'Bernoulli Distribution' The figure's title.
xlabel 'Bernoulli Distribution' The x-axis label.
ylabel 'Frequency' The y-axis label.
legend_size 12 The legend font size.
title_size 20 The title font size.
label_size 16 The label font size.
tick_size 12 x and y axis tick font size.

Example

bernofig(size=10000)

image-20200812123513349

bernofig(p=0.6, color='#2a6bd4', grid=False)

image-20200812123931093