Skip to content

Commit f2992f2

Browse files
committed
Update README
1 parent a2be44a commit f2992f2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
# Matplotlib Inline Back-end for IPython and Jupyter
2+
3+
## Installation:
4+
5+
With pip:
6+
7+
```bash
8+
pip install matplotlib-inline
9+
```
10+
11+
With conda:
12+
13+
```bash
14+
conda install -c conda-forge matplotlib-inline
15+
```
16+
17+
## Usage
18+
19+
In a Jupyter Notebook:
20+
21+
```python
22+
%matplotlib inline
23+
24+
import matplotlib.pyplot as plt
25+
import numpy as np
26+
27+
x = np.linspace(0, 3*np.pi, 500)
28+
plt.plot(x, np.sin(x**2))
29+
plt.title('A simple chirp');
30+
```

0 commit comments

Comments
 (0)