在matplotlib上添加没有网格线的刻度标签

时间:2019-03-09 10:42:57

标签: python matplotlib

我想在y轴上添加刻度线标签,但我不想在此刻度线中添加网格线。

当我在y轴上添加刻度时,它会添加网格线和标签。我想在例如1、2、3、4、5 ...上有网格线和标签...然后我想在3.14上添加标签,但不想在网格线上添加标签(因为我添加了一个以轴线结束于功能)

I want a label on the y-axe at the red line position

But I don't want to appear the gray grid-line on that label

0 个答案:

没有答案
相关问题