python笔记
Cheuk__Ho
这个作者很懒,什么都没留下…
展开
-
用Matplotlib画等高线图
所用到的函数如下:matplotlib.pyplot.contour(*args, **kwargs)matplotlib.pyplot.contourf(*args, **kwargs)两个函数的keyword是一致的,由于两个函数的返回值相同,所以可以结合使用。前者是绘制等高线,后者是填充等高线。keyword建议查看官方文档。导入库import numpy as npimpor...原创 2020-02-28 17:54:35 · 1009 阅读 · 0 评论 -
用Matplotlib与Seaborn画散点图并创建图例
Matplotlib与Seaborn是在python中很常用的两个画图库。安装两个库pip install matplotlibpip install seaborn用Matplotlib画散点图import matplotlib as mplimport matplotlib.pyplot as pltimport seaborn as sns import pandas a...原创 2020-02-24 17:34:59 · 1764 阅读 · 0 评论