sleep_data / draw_db.py
thelou1s's picture
init
f1f2090
raw
history blame
439 Bytes
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()