Ability to change layout for "Download plot as a png"

Is there anyway to create a callback which will change the layout of a graph when the user clicks the “download plot as a png” icon? ie. background color?

My graphs use dark colors that look good in a web setting, but would look terrible if printed.

Hm, that’s a good question. I don’t think that this is possible right now. One way you might be able to do this is to have a custom button to download the graph and then create a PNG of that graph using Orca (https://github.com/plotly/orca)

@chriddyp: Is it possible to download an entire div as png using orca?

I have multiple graphs under a div like this:

Hi @chriddyp, do you have any suggestions or ideas to make this work ?