Adding caption below X-axis for a scatter plot using matplotlib

前端 未结 5 1165
灰色年华
灰色年华 2021-02-07 03:17

I am pretty new to python and to the matplotlib library. I have created a scatter plot using matplotlib and now I wish to add caption a little below the X-axis. This is my code:

5条回答
  •  耶瑟儿~
    2021-02-07 03:59

    as @Nicky V mentioned.

    plt.xlabel('''Butterfly contract traded
    
    Note: c1-c2-c3 indicates the position: long 2 times c2 and short c1 anc c3''')
    

    Result:

提交回复
热议问题