matplotlib savefig() size control June 12, 2023 by Tarik From the documentation, you can add a dpi argument to set the resolution. savefig('foo.png', dpi=199)