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

前端 未结 5 1049
灰色年华
灰色年华 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 04:19

    Another simple solution that I used when I couldn't figure out how to do it in a way that was designed...if that makes sense, was to just add some new lines to the xlabel plt.xlabel("xaxis label\n\n\n\ncaption") This just puts the caption a couple new lines under the x axis which makes it look like a caption even thought it's really part of the xaxis label

提交回复
热议问题