如何在matplotlib中偏移标记?

2024-05-16 14:33:49 发布

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

plt.plot([2,5],[0,0], marker='^', markersize= 15, fillstyle='none')

enter image description here

什么是最简单的方法,使标记下降一点,使线接触到三角形的顶部?在

我试着画一个光束就像下面的图像,但我甚至不能把标记正确地放好,哈哈 enter image description here


Tags: 方法标记图像noneplotpltmarker光束