Visualize eventos no tempo com TimelinePlot
De forma padrão, as linhas de tempo irão se alinhar com grupos de legendas.
In[1]:=
![Click for copyable input](assets.pt-br/visualize-time-events-with-timelineplot/In_12.png)
TimelinePlot[(# ->
Show[IconData["MoonPhase", MoonPhase[#]], ImageSize -> 50]) & /@
DateRange[{2016, 1, 1}, {2016, 1, 8}, "Day"], ImageSize -> 400]
Out[1]=
![](assets.pt-br/visualize-time-events-with-timelineplot/O_8.png)
Distribua as legendas horizontalmente.
In[2]:=
![Click for copyable input](assets.pt-br/visualize-time-events-with-timelineplot/In_13.png)
TimelinePlot[(# ->
Show[IconData["MoonPhase", MoonPhase[#]], ImageSize -> 40]) & /@
DateRange[{2016, 1, 1}, {2016, 1, 8}, "Day"],
PlotLayout -> "Grouped"]
Out[2]=
![](assets.pt-br/visualize-time-events-with-timelineplot/O_9.png)
A colocação das legendas se ajustarão automaticamente ao layout da linha do tempo.
In[3]:=
![Click for copyable input](assets.pt-br/visualize-time-events-with-timelineplot/In_14.png)
TimelinePlot[(# ->
Show[IconData["MoonPhase", MoonPhase[#]], ImageSize -> 50]) & /@
DateRange[{2016, 1, 1}, {2016, 1, 8}, "Day"],
PlotLayout -> "ReverseVertical", ImageSize -> 400, AspectRatio -> 1]
Out[3]=
![](assets.pt-br/visualize-time-events-with-timelineplot/O_10.png)