Plotting¶
plot_process_graph ¶
plot_process_graph(
graph: "TimeSeriesGraph",
*,
var_names: Sequence[str] | None = None,
show_surrogate: bool = True,
surrogate_name: str = "C",
figsize: tuple[float, float] = (8.0, 6.0),
save_path: str | None = None,
fig_ax: tuple["Figure", "Axes"] | None = None,
**tigramite_kwargs,
) -> tuple["Figure", "Axes"]
Plot the aggregate process graph: one node per variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
graph
|
'TimeSeriesGraph'
|
The :class: |
required |
var_names
|
Sequence[str] | None
|
Optional list of length |
None
|
show_surrogate
|
bool
|
If |
True
|
surrogate_name
|
str
|
Label for the surrogate node. Default |
'C'
|
figsize
|
tuple[float, float]
|
Matplotlib figsize. Ignored if |
(8.0, 6.0)
|
save_path
|
str | None
|
If given, save the figure to this path with |
None
|
fig_ax
|
tuple['Figure', 'Axes'] | None
|
|
None
|
**tigramite_kwargs
|
Forwarded to |
{}
|
Returns:
| Type | Description |
|---|---|
tuple[Figure, Axes]
|
|
plot_time_series_graph ¶
plot_time_series_graph(
graph: "TimeSeriesGraph",
*,
var_names: Sequence[str] | None = None,
show_surrogate: bool = True,
surrogate_name: str = "C",
surrogate_position: str = "top",
figsize: tuple[float, float] = (10.0, 5.0),
save_path: str | None = None,
fig_ax: tuple["Figure", "Axes"] | None = None,
highlight_changing: bool = True,
**tigramite_kwargs,
) -> tuple["Figure", "Axes"]
Plot the time-unrolled causal graph.
One node per (variable, time-step); lagged edges go between
different time-steps, contemporaneous edges within the same one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
graph
|
'TimeSeriesGraph'
|
The :class: |
required |
var_names
|
Sequence[str] | None
|
Optional list of length |
None
|
show_surrogate
|
bool
|
If |
True
|
surrogate_name
|
str
|
Label for the surrogate row. Default |
'C'
|
surrogate_position
|
str
|
|
'top'
|
figsize
|
tuple[float, float]
|
Matplotlib figsize. Ignored if |
(10.0, 5.0)
|
save_path
|
str | None
|
If given, save the figure to this path with |
None
|
fig_ax
|
tuple['Figure', 'Axes'] | None
|
|
None
|
highlight_changing
|
bool
|
If |
True
|
**tigramite_kwargs
|
Forwarded to |
{}
|
Returns:
| Type | Description |
|---|---|
tuple[Figure, Axes]
|
|