So I know that you can select colors in an Altair plot by setting color='blue' or by specifying a hex code. I was wondering if it's possible to instead use a single color from a Vega color scheme like dark2 or set1 without explicitly specifying its hex code.
I want it be something like:
color = sample_from_scheme('set1')
alt.Chart(df).mark_circle().encode(
x='X',
y='Y',
color=color
).save(
"image.html"
)