我正在尝试使用Altair Python可视化库,并成功使用facet函数。但是,在绘图中,所有分面都具有相同的y轴限制。我想知道是否可以实现类似于ggplot2的facet(~column,scales ="free")的功能。是否有办法在Altair中实现scales ==“free”?我查看了文档,并没有看到其他可以调整的变量。
我使用的代码如下:
我使用的代码如下:
alt.Chart(sum_tf).mark_line().encode(
x='month:Q',
y='value:Q',
).properties(
width=600,
height=100
).facet(
facet='variable:O',
columns=1
)