From 50c3968f2780043c5c0de4be4862f40e7310b564 Mon Sep 17 00:00:00 2001 From: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com> Date: Tue, 21 Feb 2023 11:32:06 -0800 Subject: [PATCH] Fix Matplotlib warning when building docs (#820) Fix the warning in the docs because of matplotlib.cm deprecations. --- docs/source/tutorial/betweenness_centrality.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())