Welcome to the exercises for reviewing matplotlib! Take your time with these, Matplotlib can be tricky to understand at first. These are relatively simple plots, but they can be hard if this is your first time with matplotlib, feel free to reference the solutions as you go along.

Also don't worry if you find the matplotlib syntax frustrating, we actually won't be using it that often throughout the course, we will switch to using seaborn and pandas built-in visualization capabilities. But, those are built-off of matplotlib, which is why it is still important to get exposure to it!

** NOTE: ALL THE COMMANDS FOR PLOTTING A FIGURE SHOULD ALL GO IN THE SAME CELL. SEPARATING THEM OUT INTO MULTIPLE CELLS MAY CAUSE NOTHING TO SHOW UP. **

Follow the instructions to recreate the plots using this data:

```
In [1]:
```import numpy as np
x = np.arange(0,100)
y = x*2
z = x**2

```
In [2]:
```import matplotlib.pyplot as plt
%matplotlib inline

```
In [3]:
```fig1 = plt.figure()
ax = fig1.add_axes([0,0,1,1])
ax.plot(x,y)
ax.set_title("title")
ax.set_xlabel("x")
ax.set_ylabel("y")

```
Out[3]:
```

```
In [4]:
```fig2 = plt.figure()
ax1 = fig2.add_axes([0,0,1,1])
ax2 = fig2.add_axes([0.2,0.5,0.2,0.2])

```
```

** Now plot (x,y) on both axes. And call your figure object to show it.**

```
In [5]:
```ax1.plot(x,y)
ax2.plot(x,y)
fig2

```
Out[5]:
```

```
In [6]:
```fig2 = plt.figure()
axb1 = fig2.add_axes([0,0,1,1])
axb2 = fig2.add_axes([0.2,0.5,0.4,0.4])

```
```

```
In [8]:
```axb1.plot(x,z)
axb1.set_xlabel("X")
axb1.set_ylabel("Z")
axb2.plot(x,y)
axb2.set_xlabel("X")
axb2.set_ylabel("Y")
axb2.set_title("zoom")
axb2.set_xlim(20,22)
axb2.set_ylim(30,50)
fig2

```
Out[8]:
```

```
In [9]:
```plt.subplots(1,2)

```
Out[9]:
```

** Now plot (x,y) and (x,z) on the axes. Play around with the linewidth and style**

```
In [18]:
```fig3, axn = plt.subplots(1,2)
axn[0].plot(x,y, color='blue', linestyle='--', linewidth=3)
axn[1].plot(x,z, color='red', linewidth=3)

```
Out[18]:
```

```
In [19]:
```fig4, axn1 = plt.subplots(1,2, figsize=[10,2])
axn1[0].plot(x,y, color='blue', marker='.', linewidth=3)
axn1[1].plot(x,z, color='red', linewidth=3)

```
Out[19]:
```