Python learning-application of matplotlib drawing tools

1. Python uses matplotlib.pyplot for drawing. In the application of deep learning, we often use two-dimensional scatter and line graphs (plot), and we also have some understanding of three-dimensional.

       First understand the mechanism, matplotlib first creates a canvas (figure) which can be displayed (figure = plt.figure()) or implicitly (ply.xxx()). When there is no figure, it will create one by itself. After creating the canvas, you can create areas (axes), and then you can paint on different areas.

Line chart plt.plot(x,y)

Scatter plot plt.scatter(x,y)

For a three-dimensional map, carry out projection=3d on the area. In general, you can use meshgird()

https://blog.csdn.net/qq_31225201/article/details/95619527?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-6.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-6.nonecase

Guess you like

Origin blog.csdn.net/JACKSONMHLK/article/details/108628106