随笔分类 - 数据可视化
摘要:bbox_to_anchor参数 可以通过bbox_to_anchor参数将图例放置在坐标系外。bbox表示容纳图例的边界框-bounding box plt.legend(bbox_to_anchor=(x0, y0, width, height), loc=) width和 height是图例框
阅读全文
摘要:转载自:https://www.cnblogs.com/atanisi/p/8530693.html 1. 绘制双y轴:twinx(), 双x轴:twiny() # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot a
阅读全文