〇.准备数据 import numpy as np x = np.linspace(0, 5, 10) y = x ** 2 一.matlab风格的API 1.单图 from pylab import * figure() plot(x, y, 'r') xlabel('x') ylabel('y') title('title') show() 2.多子图 subplot(1,2,1) plot(x, y, 'r--') subplot(1,2,2) plot(y, x, 'g*-'); 二.m