Last graph marker in matplotlib not showing fully

后端 未结 1 1105
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-25 03:30

I\'m new to matplotlib. My graph in matplotlib doesn\'t show the last marker fully. I\'ve tried increasing the figure size and nothing changes. I need to extend the figure so th

相关标签:
1条回答
  • 2021-01-25 04:02

    (mostly copied from How to autoscale y axis in matplotlib?)

    You want margins doc

    ex

    ax.margins(y=.1, x=.1)
    

    Also see Add margin when plots run against the edge of the graph

    matplotlib 1.3.x will include the rcParam values axes.xmargin and axes.ymargin to set a none-zero margin (code for it is in master already).

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