Uses https://gist.github.com/timdown/021d9c8f2aabc7092df564996f5afbbf to detect and eliminate transparent border pixels. Note that this only works when saving the original image -- if you close the chart display window, and then view the output image again, it'll have the transparent border pixels again, and right-click saving that image will not trim them away.
Uses https://gist.github.com/timdown/021d9c8f2aabc7092df564996f5afbbf to detect and eliminate transparent border pixels. Note that this only works when saving the original image -- if you close the chart display window, and then view the output image again, it'll have the transparent border pixels again, and right-click saving that image will not trim them away.
Before:![image](https://github.com/brownplt/code.pyret.org/assets/918464/cce94bd2-645b-4502-abb0-6a57efa36e3d)
After:![chart](https://github.com/brownplt/code.pyret.org/assets/918464/54e769f2-0f03-4d58-b9be-275f12c9f836)