python背景图颜色_matplotlib作图,刻度和背景颜色
本文的代码示例,主要是记录在用matplotlib作图时,如何设置坐标刻度和背景颜色。import numpy as npimport matplotlib.pyplot as pltx = np.linspace(-2*np.pi, 2*np.pi, 1000)fig = plt.figure('test',facecolor='lightyellow')ax = fig.add_subplot...