首页 > 编程知识 正文

python3,matplotlib和matlab的区别

时间:2023-05-05 02:27:06 阅读:40731 作者:4987

Matplotlib is the whole package; pylabisamoduleinmatplotlibthatgetsinstalledalongsidematplotlib; andmatplotlib.pyplotisamoduleinmatplotlib。

pyplotprovidesthestate-machineinterfacetotheunderlyingplottinglibraryinmatplotlib.thismeansthatfiguresandaxesareimplicitly esiredplot.forexample,callingplotfrompyplotwillautomaticallycreatethenecessaryfigureandaxestoachievethedesiredplot.setiredplot

pylabcombinesthepyplotfunctionality (for plotting ) withthenumpyfunctionality (formathematicsandforworkingwitharrays )。 in a single namespace,makingthatnamespace (or environment ) even more MATLAB-like. For example,onecallthesinandcosfunctionctionatione

thepyplotinterfaceisgenerallypreferredfornon -交互打印(I.e .scripting ).thepylabinterfaceisconvenientforient asitminimizestyping.notethatthisiswhatyougetifyousetheipythonshellwiththe-pylaboption,whimportseverythingfrompylabantion

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。