Low image resolution

I have created several plotly charts via python and am attempting to save the charts to my desktop to then import into a power point presentation.

I save the charts using fig.write_image(‘sample_image_name.png’). However, the pictures do not appear to have a very high resolution and appear grainy. Is there a way to increase the resolution or get a higher quality image that can be imported into powerpoint?

Thank you in advance for the help.

Sure, there is a width keyword argument of fig.write_image which you can use to specify the pixel width of the output image.

1 Like