Skip to content

Commit

Permalink
Fix Matplotlib warning when building docs (#820)
Browse files Browse the repository at this point in the history
Fix the warning in the docs because of matplotlib.cm deprecations.

(cherry picked from commit 50c3968)
  • Loading branch information
IvanIsCoding authored and mergify[bot] committed Feb 21, 2023
1 parent 2cebb8d commit 88fc0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorial/betweenness_centrality.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 88fc0ac

Please sign in to comment.