Setting the position of the `ylabel` in a matplotlib graph

后端 未结 1 1902
情话喂你
情话喂你 2020-12-08 07:39

I am trying to recreate the look of figure below using matplotlib (source).

\"Template

However, I

相关标签:
1条回答
  • 2020-12-08 08:25

    You can move the ylabel using ax.yaxis.set_label_coords, which does accept negative numbers. For your example, I removed the line with set_label_position, and added:

    axPres.yaxis.set_label_coords(-0.1,1.02)
    

    0 讨论(0)
提交回复
热议问题