答案 0 :(得分:1)
一种解决方案是删除行规范,并将构面设置为只有一列
import altair as alt
from vega_datasets import data
df = data.seattle_weather()
alt.Chart(df).mark_rect().encode(
alt.Y('month(date):O', title='day'),
alt.X('date(date):O', title='month'),
color='temp_max:Q'
).facet('year(date):N', columns=1)
答案 1 :(得分:1)