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.
  • Loading branch information
IvanIsCoding authored Feb 21, 2023
1 parent a5178e2 commit 50c3968
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 50c3968

Please sign in to comment.