Matplotlib教程

Matplotlib Figure类

Matplotlib Figure类详细操作教程
matplotlib.figure模块包含Figure类。它是所有plot元素的顶级容器。通过从pyplot模块调用figure()函数来实例化Figure对象 -
# Filename : example.py
# Copyright : 2020 By Lidihuo
# Author by : www.lidihuo.com
# Date : 2020-08-24
fig = plt.figure()
下表是其他参数 -
参数 描述
Figsize (width,height)以英寸为单位的元组
Dpi 每英寸点数
Facecolor 图的贴面颜色
Edgecolor 图的边缘颜色
Linewidth 边线宽度
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4