plot curve graph matplotlib code example
Example 1: python 2d graph
names = ['group_a', 'group_b', 'group_c']
values = [1, 10, 100]
plt.figure(figsize=(9, 3))
plt.subplot(131)
plt.bar(names, values)
plt.subplot(132)
plt.scatter(names, values)
plt.subplot(133)
plt.plot(names, values)
plt.suptitle('Categorical Plotting')
plt.show()
Example 2: how do a plot on matplotlib python
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot(data)
plt.ylabel('y axis means ...')
plt.xlabel('x axis means ...')