python Method for Setting Pixel Size of Output Image

  • 2021-07-09 08:47:56
  • OfStack

As shown below:


plt.rcParams['savefig.dpi'] = 300 # Picture pixel 
plt.rcParams['figure.dpi'] = 300 # Resolution 

In order to remember not to forget to send a blog, I often read and remember.

You can do it before plt. show


Related articles: