随笔分类 - matplotlib
matplotlib
摘要:plt.rcParams['font.family'] = 'Arial Unicode MS'
阅读全文
摘要:安装并激活 jupyter_contrib_nbextensions, 为了快速安装的速度,先临时使用清华的镜像,这样并不会改变默认的pip参数。 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple flask pip install ju
阅读全文
摘要:import unittest import matplotlib.pyplot as plt """简易散点图""" class MyTestCase(unittest.TestCase): def test_something(self): self.assertEqual(True, Fals
阅读全文
摘要:import unittest import matplotlib.pyplot as plt class MyTestCase(unittest.TestCase): def test_demo3(self): """简易线性图""" plt.style.use('seaborn-whitegri
阅读全文
摘要:pip3安装 pip3 install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple import unittest import matplotlib.pyplot as plt class MyTestCase(unittest.T
阅读全文