HOME/Articles/

matplotlib example data science python data visualizations imports (snippet)

Article Outline

Python matplotlib example 'data science python data visualizations imports'

Modules used in program:

  • import matplotlib.pyplot as plt
  • import pandas as pd
  • import numpy as np

python data science python data visualizations imports

Python matplotlib example: data science python data visualizations imports

%matplotlib inline

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

# Plotting two 1-D numpy arrays
x = np.linspace(5, 100, 100)
y = np.linspace(10, 1000, 100)

plt.plot(x, y)