Python drawing notes

Thanks to God Mofan, with a link to his personal website: https://morvanzhou.github.io/

Bring the official documentation and see more documentation! Otherwise, there is no place to check if the parameters are forgotten: https://matplotlib.org/api/pyplot_summary.html

Here are the relevant notes about the drawing section:

1. Introduction to matplotlib

For related introduction and installation, install anaconda directly, all solved, skip it here.

 

2. Basic use

Tips: If you directly set xlim, xticks, etc. in plt, you need to change to set_xlim, set_xticks when you change to ax

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324476296&siteId=291194637