NOAA-GSL / pygraf

ADB's Python graphics package
MIT License
10 stars 11 forks source link

add optimize flag for png plot sizes #93

Closed cshartsough closed 3 years ago

cshartsough commented 3 years ago

one extra flag in create_graphics:parallel_maps:plt.savefig, to optimize the PNG plot file sizes.

Test's show about 2-3% lower files sizes. No change in plot images.

Passed pylint and pytest.

Sample plot size change: ceil_full_f000.png 225 kB --> 219 kB temp_full_2m_f000.png 418 kB --> 410 kB