Calmcode - matplotlib: introduction

Introduction

1 2 3 4 5 6 7 8 9

For quick plotting in python, you can't go wrong with matplotlib. It's the standard tool for most data scientist and for good reason.

To be able to use the tools in these videos you'll need to install them first.

python -m pip install numpy matplotlib

From here, to get "hello world" running for matplotlib, just run;

import numpy as np
import matplotlib.pylab as plt

x = np.linspace(0, 1, 100)
y = x ** 2
plt.plot(x, y);