def fig_to_vincent(fig):
    renderer = VincentRenderer()
    exporter = Exporter(renderer)
    exporter.run(fig)
    return renderer.chart
Convert a matplotlib figure to a vincent object
dataset/ETHPy150Open bokeh/bokeh/bokeh/core/compat/mplexporter/renderers/vincent_renderer.py/fig_to_vincent