Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 596 Bytes

a_notebook.md

File metadata and controls

33 lines (28 loc) · 596 Bytes
jupyter
jupytext kernelspec
text_representation
extension format_name format_version jupytext_version
.md
markdown
1.2
1.3.0
display_name language name
Python [conda env:climnum]
python
conda-env-climnum-py

Plot random numbers

First, import relevant modules.

%matplotlib inline
import numpy as np
from matplotlib import pyplot as plt

Then, plot 1000 pairs of random numbers in the x-y plane.

plt.scatter(
    np.random.normal(size=(1000, )),
    np.random.normal(size=(1000, )),
    alpha=0.2
);