6.7 确定坐标范围 在 Matplotlib中,使用 xlim(x,y)和 ylim(x,y)函数可以确定坐标范围(见文件axis_limit.py),代码如下。 绘图结果如图6-8所示。 图6-8 确定坐标范围的绘图