我有一个图,我想在图上标记 x 的一些值,如下图所示,(ps 我手工放置了点)
我尝试了以下代码,但它没有按我预期的那样工作。
roots = [-1,1,2] plt.plot(vals,poly,markevery=roots,label='some graph')
作为总结,我想在函数行上放一个点,表示该点是根。
python plot matplotlib
matplotlib ×1
plot ×1
python ×1