import matplotlib.pyplot as plt def draw(x_points=None, y_points=None): plt.plot(x_points) plt.show() def draw_two(x_list1=None, x_list2=None): fig, ax = plt.subplots() ax.plot(x_list1) ax.plot(x_list2) ax.legend() plt.show() def draw_three(x_list1=None, x_list2=None, x_list3=None): fig, ax = plt.subplots() ax.plot(x_list1) ax.plot(x_list2) ax.plot(x_list3) ax.legend() plt.show()