import numpy as np import pandas as pd import matplotlib.pyplot as plt # 解决坐标轴刻度负号乱码 plt.rcPar
# 线型以及线颜色 # https://www.runoob.com/matplotlib/matplotlib-line.html # 标记类型 # https://www.runoob.co
fig = plt.figure(figsize=(7,7)) plt.subplot(211) x = np.arange(-1,1.01,0.02) # linewidth lw 1
fig = plt.figure(figsize=(7,7)) x = np.arange(1,5) plt.plot(x,x) # 网格,alpha透明度 plt.grid(ls='-.