时间说明:2019.11.05
环境说明:python3.6
问题说明:用plt.imshow()或者plt.matshow()画图的时候,标题一直在图的上方,如何调节标题的位置
1、首先是如何对matshow添加标题,在plt.matshow()之前使用plt.title()是不行的,必须在matshow之后再添加plt.title
2、plt.title("you title name")这样默认是将title加在图像上方,plt.title("your title name", y=-0.1)设置y位置可以将title设置在图像下方