Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

Subplots with legend in one of the plots does not work

This does not work, the problem is the legend

from plotly import tools
import plotly.plotly as py
import plotly.graph_objs as go


fig = figure()
ax3 = subplot2grid((2,2),(0,1),rowspan=2)
ax1 = subplot2grid((2,2),(0,0))
ax2 = subplot2grid((2,2),(1,0))



ax1.plot([1,2],[5,2])
ax2.plot([1,2],[2,3])
ax3.plot([4,2],[7,3])
ax3.legend('dfsdf')## Without this line it does work
suptitle(Cell1)

plot_url = py.plot_mpl(fig)