tnetwork.plot_longitudinal¶
-
tnetwork.
plot_longitudinal
(dynamic_graph=None, communities=None, sn_duration=None, to_datetime=False, nodes=None, width=800, height=600, bokeh=False, auto_show=False)[source]¶ A longitudinal view of nodes/snapshot_communities
Plot snapshot_affiliations such as each node corresponds to a horizontal line and time corresponds to the horizontal axis
Parameters: - dynamic_graph – DynGraphSN or DynGraphIG
- communities – dynamic snapshot_affiliations, DynCommunitiesSN or DynCommunitiesIG
- sn_duration – the duration of a snapshot, as int or timedelta. If none, default is the network frequency
- to_datetime – one of True/False/function. If True, step IDs are converted to dates using datetime.utcfromtimestamp. If a function, should take a step ID and return a datetime object.
- nodes – If none, plot all nodes in lexicographic order. If a list of nodes, plot only those nodes, in that order
- width – width of the figure
- height – height of the figure