尝试保存 matplotlib 时遇到以下问题fill_between()
在 ipython 中绘制为 pdf 格式。
import matplotlib.pyplot as plt
A =[1,2,3,4,5,6]
B = [10,20,30,40,50,60]
plt.fill_between(A,A,B,color="none", hatch="\\\\\\\\\\\\", edgecolor="grey", linewidth=0.0,alpha=1)
plt.savefig('test.pdf')
when I run this, I find the following plot in the ipython notebook:
However, when I open the saved file, it instead looks like this:
舱口几乎看不见。例如,我需要高质量的绘图,这就是为什么我尝试另存为 pdf 而不是 png 的原因。有没有办法增加linewidth
保存 pdf 时的阴影线?