想画网格,Python

2024-06-16 10:15:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用python绘制网格表,但现在我可以绘制ECG图,而不能绘制网格。 现在>;>我的心电图图 enter image description here

在将来,我想要有心电图图的红色网格,。 你能给我一些建议来划定红线吗? enter image description here


Tags: imagegt网格here绘制description建议enter
1条回答
网友
1楼 · 发布于 2024-06-16 10:15:28

这对你来说可能太迟了,但我希望这能有所帮助:

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')

相关问题 更多 >