
matplotlib
蘑菇棒棒哒
这个作者很懒,什么都没留下…
展开
-
matplotlib.pyplot
所有绘图函数都需要np.array作为输入类型。如果是 “类数组(array-like)” 对象(如pandas数据对象和np.matrix)可能会或可能不会按预期工作。最好在绘图之前将它们转换为np.array对象。 fig = plt.figure() # 建立一个空的画布 fig.suptitle('No axes on this figure') # Add a title so we...原创 2019-05-20 20:39:42 · 338 阅读 · 0 评论 -
matplotlib用tex写数学公式
import numpy as np import matplotlib matplotlib.rcParams['text.usetex'] = True import matplotlib.pyplot as plt t = np.linspace(0.0, 1.0, 100) s = np.cos(4 * np.pi * t) + 2 fig, ax = plt.subplots(fi...转载 2019-05-20 20:55:49 · 1943 阅读 · 0 评论