matplotlib.figure.Figure.get_size_inches# Figure.get_size_inches()[源代码][源代码]# 返回当前图形的大小(以英寸为单位)。 返回: ndarray图像的大小(宽度,高度)以英寸为单位。 参见 matplotlib.figure.Figure.set_size_inches matplotlib.figure.Figure.get_figwidth matplotlib.figure.Figure.get_figheight 注释 像素大小可以通过乘以 Figure.dpi 获得。 使用 matplotlib.figure.Figure.get_size_inches 的示例# 命名颜色列表 List of named colors