Matplotlib画图

本篇的目的在于把语法集中在一起,便于自己操作
没有翻译成汉语的原因在于:想锻炼英文写作和表达能力
汉语更方便的使用者可参考:https://blog.csdn.net/m0_37362454/article/details/81511427
一:语法
参考官网:https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.figure.html

  1. matplotlib.pyplot.figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class ‘matplotlib.figure.Figure’>, clear=False, **kwargs)

parameters:

         num int or str or Figure, optional
         
         figsize(float, float), default: rcParams["figure.figsize"] (default: [6.4, 4.8])
         Width, height in inches.

         dpifloat, default: rcParams["figure.dpi"] (default: 100.0)
         The resolution of the figure in dots-per-inch.

         facecolorcolor, default: rcParams["figure.facecolor"] (default: 'white')
         The background color.

         edgecolorcolor, default: rcParams["figure.edgecolor"] (default: 'white')
         The border color.

         frameonbool, default: True
         If False, suppress drawing the figure frame.

         FigureClasssubclass of Figure
         Optionally use a custom Figure instance.

二:实际操作命令

  1. import matplotlib.pyplot as plt
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值