def iplot_mpl(mpl_fig, resize=False, strip_style=False, verbose=False, show_link=True, link_text='Export to plot.ly', validate=True, image=None, image_filename='plot_image', image_height=600, image_width=800):
 plotly_plot = tools.mpl_to_plotly(mpl_fig, resize, strip_style, verbose)
 return iplot(plotly_plot, show_link, link_text, validate, image=image, filename=image_filename, image_height=image_height, image_width=image_width)

def iplot_mpl ( mpl_fig , resize = False , strip_style = False , verbose = False , show_link = True , link_text = 'Export to plot.ly' , validate = True , image = None , image_filename = 'plot_image' , image_height = 600 , image_width = 800 ) : plotly_plot = tools . mpl_to_plotly ( mpl_fig , resize , strip_style , verbose ) return iplot ( plotly_plot , show_link , link_text , validate , image = image , filename = image_filename , image_height = image_height , image_width = image_width )
convert a matplotlib figure to a plotly graph and plot inside an ipython notebook without connecting to an external server .