vega / vl-convert

Utilities for converting Vega-Lite specs from the command line and Python
BSD 3-Clause "New" or "Revised" License
89 stars 9 forks source link

Will it be possible to convert VegaLite code into matplotlib code in the future? #105

Closed Dmayset closed 10 months ago

jonmmease commented 10 months ago

Hi @Dmayset,

This is something that we've talked about at various times, and currently I think the best approach would be to vl-convert to convert Vega-Lite to Vega, then use VegaFusion to pre-evaluate and simplify the Vega spec, then have Python logic that builds a matplotlib figure from the simplified Vega spec. Here are some more thoughts: https://github.com/altair-viz/altair/discussions/3035.

Could you elaborate on your use case? i.e. What would you be able to do with the matplotlib output that you can't do with Altair?