diff --git a/docs/source/tutorial/betweenness_centrality.rst b/docs/source/tutorial/betweenness_centrality.rst index 7375bb1c9..38114101f 100644 --- a/docs/source/tutorial/betweenness_centrality.rst +++ b/docs/source/tutorial/betweenness_centrality.rst @@ -98,7 +98,7 @@ Alternatively, you can use :func:`~rustworkx.visualization.graphviz_draw`: graph[node] = btw # Leverage matplotlib for color map - colormap = matplotlib.cm.get_cmap("magma") + colormap = matplotlib.colormaps["magma"] norm = matplotlib.colors.Normalize( vmin=min(centrality.values()), vmax=max(centrality.values())