File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,13 @@ We can further customise our plots with Matplotlib directly. First we need to im
206
206
The Matplotlib library can be imported using any of the import techniques we have seen.
207
207
As Pandas is generally imported with `import pandas as pd`, you will find that `matplotlib` is most commonly imported
208
208
with `import matplotlib.pyplot as plt` where `plt` is the alias.
209
+ For demonstration purposes, we are going to use randomly generated data, using the NumPy library (aliased here as `np`).
209
210
210
211
~~~
212
+ import numpy as np
213
+ import pandas as pd
214
+ import matplotlib.pyplot as plt
215
+
211
216
# Generate some date for 2 sets of points.
212
217
x1 = pd.Series(np.random.rand(20) - 0.5)
213
218
y1 = pd.Series(np.random.rand(20) - 0.5)
You can’t perform that action at this time.
0 commit comments