Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a deprecation warning of matplotlib #560

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

t-imamichi
Copy link
Collaborator

Summary

Fixes a deprecation warning.
#559 (comment)

qiskit_optimization/applications/bin_packing.py:121: MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use matplotlib.colormaps[name] or matplotlib.colormaps.get_cmap(obj) instead.
colors = plt.cm.get_cmap("jet", len(self._weights))

Details and comments

@t-imamichi t-imamichi marked this pull request as ready for review September 20, 2023 02:19
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6243208482

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.028%

Totals Coverage Status
Change from base Build 6231210634: 0.0%
Covered Lines: 4510
Relevant Lines: 4848

💛 - Coveralls

Copy link
Member

@woodsp-ibm woodsp-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of that!

@mergify mergify bot merged commit d6cb5fc into qiskit-community:main Sep 20, 2023
15 checks passed
@t-imamichi t-imamichi deleted the fix-mpl branch September 21, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants