7.1.2 斜线
利用matplotlib.pyplot子库里的plot( )函数,可以绘制任意角度的斜线。例如,在绘图区域绘制三条不同颜色的斜线。
代码文件:7_1_1_line2.py

上述代码用于绘制斜线,其结果如图7.3所示。

图7.3 绘制斜线
7.1.3 相交线(https://www.daowen.com)
利用matplotlib库的pyplot子库里plot( )函数绘制相交线。
代码文件:7_1_3_cross_line.py


上述代码用于绘制相交线,其结果如图7.4所示。

图7.4 绘制相交线