def fig_to_vincent(fig):
    renderer = VincentRenderer()
    exporter = Exporter(renderer)
    exporter.run(fig)
    return renderer.chart
convert the given date_str string into an iso 8601 duration
dataset/ETHPy150Open bokeh/bokeh/bokeh/core/compat/mplexporter/renderers/vincent_renderer.py/fig_to_vincent--crossover with--dataset/ETHPy150Open fictivekin/openrecipes/scrapy_proj/openrecipes/util.py/get_isoduration