在 TimelinePlot 中添加图形标签
显示《哈里·波特》系列所有电影的发行日期.
In[1]:=
![Click for copyable input](assets.zh/add-graphical-labels-in-timelineplot/In_10.png)
TimelinePlot[
EntityClass["Movie", "HarryPotterFranchise"] -> "ReleaseDate"]
Out[1]=
![](assets.zh/add-graphical-labels-in-timelineplot/O_6.png)
用电影海报作为标签,以垂直时间线的方式绘制,最早的电影在最下边.
In[2]:=
![Click for copyable input](assets.zh/add-graphical-labels-in-timelineplot/In_11.png)
TimelinePlot[
Rule @@@ EntityValue[
EntityClass["Movie", "HarryPotterFranchise"], {"ReleaseDate",
"Image"}], LabelStyle -> 18, PlotLayout -> "ReverseVertical",
PlotTheme -> "Business"]
Out[2]=
![](assets.zh/add-graphical-labels-in-timelineplot/O_7.png)