# scope_profiler.plotting_scripts.heatmap

*module*

Rank x region duration heatmap.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/plotting_scripts/heatmap.py#L1-L1)

## scope_profiler.plotting_scripts.heatmap.plot_rank_heatmap

*function*

```python
def plot_rank_heatmap(profiling_data: ProfilingResults | Sequence[ProfilingResults], ranks: list[int] | int | None = None, include: list[str] | str | None = None, exclude: list[str] | str | None = None, filepath: str | None = None, show: bool = False, verbose: bool = True, cmap: str = 'viridis', data_filepath: str | Path | None = None, data_format: str = 'csv', backend: str = 'matplotlib', return_fig: bool = False, exclusive: bool = False) -> object | None
```

Plot total or exclusive region time as a rank-by-region heatmap.

[View source](https://github.com/max-models/scope-profiler/blob/devel/src/scope_profiler/plotting_scripts/heatmap.py#L21-L164)
