aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/matplotlib-inline/README.md
blob: d867a10191a1eaf8e857e1781be27e904a054c68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Matplotlib Inline Back-end for IPython and Jupyter 
 
## Installation 
 
With conda: 
 
```bash 
conda install -c conda-forge notebook matplotlib 
``` 
 
With pip: 
 
```bash 
pip install notebook matplotlib 
``` 
 
## Usage 
 
This package is included in IPython and can be used in a Jupyter Notebook: 
 
```python 
%matplotlib inline 
 
import matplotlib.pyplot as plt 
import numpy as np 
 
x = np.linspace(0, 3*np.pi, 500) 
plt.plot(x, np.sin(x**2)) 
plt.title('A simple chirp'); 
```