Plotting Utils
Plotting Utils
plot_density_map(data, y_title, filename=None)
Plot a density map using fig and ax Parameters: data: A list of desired variable to be plotted y_title: Title of the y axis filename: Name of the output file name, containing the path
Source code in tgx/utils/plotting_utils.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
|
plot_for_snapshots(data, y_title, filename=None, show_ave=True)
Plot a variable for different timestamps Parameters: data: A list of desired variable to be plotted y_title: Title of the y axis filename: Name of the output file name, containing the path show_ave: Whether to plot a line showing the average of the variable over all timestamps
Source code in tgx/utils/plotting_utils.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|
plot_nodes_edges_per_ts(edges, nodes, ts, filename=None, ylabel_1='Edges per Timestamp', ylabel_2='Nodes per Timestamp')
Plot nodes and edges per timestamp in one figure Parameters: edges: A list containing number of edges per timestamp nodes: A list containing number of nodes per timestamp ts: list of timestamps filename: Name of the output file name, containing the path ylabel_1: Label for the edges per timestamp line ylabel_2: Label for the nodes per timestamp line
Source code in tgx/utils/plotting_utils.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|