摘要:
import matplotlib.pyplot as plt import numpy as np x = np.linspace(0,10,100) sin_y = np.sin(x) plt.plot(x,sin_y) cos_y = np.cos(x) plt.plot(x,cos_y) p 阅读全文
摘要:
import matplotlib.pyplot as plt x = range(-100,100) y = [i**2 for i in x] plt.plot(x,y) plt.rcParams['font.sans-serif'] = ['SimHei'] plt.title("绘制多点双曲 阅读全文
摘要:
# coding=utf-8 import matplotlib.pyplot as plt plt.rcParams['font.family'] = ['sans-serif'] # 在我的 notebook 里,要设置下面两行才能显示中文 plt.rcParams['font.sans-ser 阅读全文