【发布时间】:2019-03-21 14:45:40
【问题描述】:
以下代码将使用 matplotlib 生成一个精美的箭头:
import matplotlib.pyplot as plt
xy = [0.2,0.2]
xytext =[0.5,0.5]
plt.figure()
ax = plt.gca()
ax.annotate("", xy=xy, xytext=xytext,arrowprops=dict(arrowstyle="<|-", edgecolor = 'k', facecolor = 'r', shrinkA = 0, shrinkB = 0))
箭头是红色的,边缘是黑色的。如何控制黑边的宽度?
【问题讨论】:
标签: python matplotlib