I am using matplotlib to plot data. Here\'s a code that does something similar:
import matplotlib.pyplot as plt f, ax = plt.subplots(1) xdata = [1, 4, 8] yda
Note that ymin will be removed in Matplotlib 3.2 Matplotlib 3.0.2 documentation. Use bottom instead:
ymin
bottom
import matplotlib.pyplot as plt f, ax = plt.subplots(1) xdata = [1, 4, 8] ydata = [10, 20, 30] ax.plot(xdata, ydata) ax.set_ylim(bottom=0) plt.show(f)