How to Save MatPlotLib Figure as PNG Byte Array With Decimal Formatting
Advertisements I have some data I’m visualizing with a MatPlotLib figure. I want to be able to convert the figure into a byte array that is formatted with PNG decimal values. https://www.w3.org/TR/PNG-Structure.html fig = plt.figure(figsize=(16,16)) ax = fig.add_subplot(projection=’3d’) ax.voxels(space, facecolors = rgb_input) plt.axis(‘off’) fig.patch.set_alpha(0.25) ax.patch.set_alpha(0.25) I know how to save it as a PNG and… Read More How to Save MatPlotLib Figure as PNG Byte Array With Decimal Formatting