vega / vl-convert

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

`vl-convert-python` svg output issue for scatterplots #44

Closed nicolaskruchten closed 1 year ago

nicolaskruchten commented 1 year ago

This code:

from vl_convert import vegalite_to_svg
from urllib.request import urlopen
import json
prefix = "https://raw.githubusercontent.com/vega/vega-lite/next/examples/specs/"
f = "sample_scatterplot.vl.json"
spec = json.loads(urlopen(prefix + f).read())
with open("test.svg", "w") as out:
  out.write(vegalite_to_svg(spec))

Yields this output for me (I uploaded the actual SVG so view-source as needed):

test

I'm on MacOS 11.6 on Apple Silicon, Python 3.10 installed by mamba

jonmmease commented 1 year ago

duplicate of https://github.com/vega/vl-convert/issues/43