【发布时间】:2021-05-07 12:14:54
【问题描述】:
如何填充下方曲线“a”(向上倾斜的线)和上方“b”(水平)的空间?谢谢。
#Plot data
sns.set(font_scale = 1.5, style = 'white', rc=None)
fig, ax = plt.subplots(figsize = (15,10))
a = sensitivity.plot(y = 0.2, ax = ax, linestyle = '--', color = 'gray')
b = sensitivity.plot(y = 0.3, ax = ax, linestyle = '-.', color = 'gray')
c = sensitivity.plot(y = 0.4, ax = ax, linestyle = ':', color = 'gray')
d = ax.hlines(y=7.5, xmin=100, xmax=900, colors='black', linestyles='-', lw=2, label='Single Short Line')
输出:
【问题讨论】:
标签: python python-3.x matplotlib plot