![](https://img-blog.csdnimg.cn/20210407110029329.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Matplotlib
文章平均质量分 57
matplotlib的使用
ayiya_Oese
1234
展开
-
使用matplotlib.pyplot
matplotlib.pyplot的使用pyplotplotscatterxlabel,ylabelaxis and xlim,ylimsubplotpyplotmatplotlib.pyplot是使matplotlib像MATLAB一样工作的函数的集合。每个pyplot函数都会对figure进行一些更改:例如,创建figure,在figure中创建绘图区域,在绘图区域中绘制一些线条,用标签装饰绘图等。plotplot的使用方式import matplotlib.pyplot as pltpl原创 2021-04-08 11:32:37 · 215 阅读 · 1 评论 -
使用Matplotlib绘制图像
使用Matplotlib绘制图像魔法命令matplotlib.image魔法命令在notebook中,无法进行弹窗显示matplotlib控件,但是notebook已经集成了matplotlib,可以使用魔法命令来显示matplotlib的图表:%matplotlib inline这样就可以以内联的形式,将图表显示在cell下的output区域。在notebook中使用matplotlib的缺点就是无法使用交互模式对绘制的图像进行实时修改。matplotlib.image本篇使用的图片:原创 2021-04-07 17:26:39 · 228 阅读 · 1 评论 -
安装matplotlib
matplotlib安装安装matplotlib安装pip安装pip install matplotlibconda安装# main channelconda install matplotlib# 或者conda-forge community channelconda install -c conda-forge matplotlibmatplotlib使用matplotlib可以画出各种图表,交互GUI,并且可以绑定到几个GUI工具包:Qt,Tk,Wx,GTK,macOS,Ja原创 2021-04-07 11:47:23 · 185 阅读 · 0 评论