-1

我想用python画网格表,但现在我可以画心电图,我不能画网格。现在>> 我的心电图 在此处输入图像描述

在未来,我想要带有心电图的红色网格,。你能给我一些建议来画红线吗? 在此处输入图像描述

4

1 回答 1

0

这对您来说可能为时已晚,但我希望这会有所帮助:

fig, ax = plt.subplots()

# plot your ECG

# Turn on the minor ticks on
ax.minorticks_on()

# Make the major grid
ax.grid(which='major', linestyle='-', color='red', linewidth='1.0')
# Make the minor grid
ax.grid(which='minor', linestyle=':', color='black', linewidth='0.5')
于 2019-08-07T21:41:04.557 回答