Spaces:
Sleeping
Sleeping
File size: 439 Bytes
f1f2090 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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() |