Good displays of data should make it easy to identify what data is being represented by each graph component. There are several ways to do that, but using line colors, styles, and markers goes a long way to help readers identify what quantity is represented by each line.
Setting line styles and markers
Getting ready
Start Jupyter and run the following three commands in an execution cell:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
How to do it…
Run the following code in a Jupyter code cell:
plt.figure(figsize=(8,4))
plt.subplot(1, 2, 1)
xvalues...