Keyerror: 'Bottom' on saving matplotlib chart as plotly using py.plot_mpl(fig)

I have raised a stackoverflow post for this issue. Link to the same: