I am learning the matplotlib. But I can not understand the example in their official page.
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 10)
line, = plt.plot(x, np.sin(x), '--', linewidth=2)
dashes = [10, 5, 100, 5] # 10 points on, 5 off, 100 on, 5 off
line.set_dashes(dashes)
plt.show()
The result is
(source: matplotlib.org)
Question about the code is:
line, = plt.plot(x, np.sin(x), '--', linewidth=2)
What means the "," after the line?
Thanks very much for the patient!