English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
matplotlib.figure模块包含Figure类。它是所有plot元素的顶级容器。通过从pyplot模块调用figure()函数来实例化Figure对象 -
# Filename : example.py # Copyright : 2020 By w3codebox # Author by : fr.oldtoolbag.com # Date : 2020-08-08 fig = plt.figure()
下表是其他参数 -
参数 | 描述 |
Figsize | (width,height)以英寸为单位的元组 |
Dpi | 每英寸点数 |
Facecolor | 图的贴面颜色 |
Edgecolor | 图的边缘颜色 |
Linewidth | 边线宽度 |