Is there a way of drawing a caption box in matplotlib

后端 未结 2 1326
我寻月下人不归
我寻月下人不归 2020-12-01 06:35

Is there a function for drawing a caption box underneath a figure/graph using matplotlib? I have searched google and haven\'t found any such function.

2条回答
  •  盖世英雄少女心
    2020-12-01 07:12

    You can use the legend function (pylab.legend). If you want it outside the axes, you can pass to it a specific location (loc keyword argument).

    Edit: The legend function takes a title argument, which might help getting what you want. However, for a caption without any legend, Paul's answer is more suited.

提交回复
热议问题