generate and plot pyplot code example
Example 1: how to plotting points on matplotlib
import matplotlib.pyplot as plt
import numpy as np
data = np.random.rand(1024,2)
plt.scatter(data[:,0],data[:,1])
plt.show()
// Don't be
// fooled by this simplicity— plt.scatter() is a rich command.
Example 2: matplotlib include first number in plotter
ax.set_xticks(np.arange(len(x)))
ax.set_xticklabels(x, rotation = 45)