好玩的画图工具matplotlib(一)

这个官方tutorial的封面目录
https://matplotlib.org/tutorials/index.html

1、user_guide

很多人用matplotlib的时候搞不懂axes,axis,这两个一样吗,都是干什么的呢?
figure和axes什么关系呢,搞不懂这些参数,什么是legends呢,下面的第一部分主要就是讲述了matplotlib中最基本也是最重要的概念,文章不长,但是收获很多,这下不用瞎猜概念了。
另外 labels title spine 等术语也都会有很清晰的解释
让我们进入第一个Introductory的user_guide部分吧
https://matplotlib.org/tutorials/introductory/usage.html#sphx-glr-tutorials-introductory-usage-py

2、Pyplot tutorial

pyplot好像很神奇,但是就是搞不懂我没有指定画直线,它怎么就给我画出直线来了呢,为什么用plot的时候就不用figure这个函数了呢?
https://matplotlib.org/tutorials/introductory/pyplot.html#sphx-glr-tutorials-introductory-pyplot-py

猜你喜欢

转载自blog.csdn.net/weixin_38246633/article/details/85332434