Skip to content

Commit

Permalink
Updated get_cmap
Browse files Browse the repository at this point in the history
  • Loading branch information
KilianPoirier committed Jun 4, 2024
1 parent 37d3270 commit 544909b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openqaoa-core/openqaoa/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def plot_graph(G: nx.Graph, ax=None, colormap="seismic") -> None:
# extract minimum and maximum weights for side bar limits
weights = list(edges_and_weights.values())
# Define color map
cmap = plt.cm.get_cmap(colormap)
cmap = plt.get_cmap(colormap)

if len(set(weights)) > 1:
edge_vmin = min(weights)
Expand Down

0 comments on commit 544909b

Please sign in to comment.