Save plot as png; sizing and positioning

Awesome, thanks again Chris!

I actually have another question if you don’t mind. I’m attempting to implement the suggested fix from plotly but am having trouble converting this JS to python code:

modeBarButtonsToAdd: [{
    name: 'toImage2',
    icon: Plotly.Icons.camera,
    click: function(gd) {
      Plotly.downloadImage(gd)
    }
  }]

any tips on how to get this into python?