import numpy as np
import matplotlib.pyplot as plt
xs = np.linspace(-np.pi, np.pi, 30)
ys = np.sin(xs)
plt.plot(xs, xs, ys, '-gD')
plt.title('Standard Deviation: %s; marker represents the average of the data (%s)' % (np.mean(ys), np.std(ys)))
那对你有用吗?
