python matplotlib 数据可视化(一)(向几何图形填充颜色)向几何图形中填充颜色
向几何图形中填充颜色一、规则多边形颜色填充代码如下:import matplotlib.pyplot as pltimport numpy as npx = [0, 0, 5, 10, 15, 15, 10, 5]y = [5, 10, 15, 15, 10, 5, 0, 0]plt.fill(x, y, color = "cornflowerblue")plt.xlim(-8, ...