How to change the linewidth of hatch in matplotlib?

后端 未结 4 1204
执笔经年
执笔经年 2021-02-05 08:47

Is there a way to increase the width of hatch in matplotlib?

For example, the following code by specifying linewidth only changes the width of the edge. I

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 09:00

    I have a workaround that may help some. I use this when making my final plots for reports. The width of the hatch is affected by the dpi setting in

    plt.savefig('pic',dpi=300)
    

    The following figure is done at 80 DPI

    Then again at 400 DPI

    I fully understand that this may introduce other issues, but I figured it is worth the mention.

提交回复
热议问题