Commit 4e1cb12
Replace deprecated plt.cm.get_cmap in tutorials (#2347)
Summary:
`plt.cm.get_cmap` has been deprecated since v3.7 and got fully removed in v3.9: https://matplotlib.org/3.8.4/api/cm_api.html#matplotlib.cm.get_cmap
A recent failure caused by this: https://github.com/pytorch/botorch/actions/runs/9122432682
`plt.get_cmap` lives on with no deprecation notice according to v3.10 development docs: https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.get_cmap.html
Pull Request resolved: #2347
Test Plan: The tutorials CI job passes.
Reviewed By: dme65
Differential Revision: D57476779
Pulled By: saitcakmak
fbshipit-source-id: fe61c459c4e395f1c7714b449d2be5b13b2c9d151 parent 27696a3 commit 4e1cb12
File tree
2 files changed
+3
-3
lines changed- tutorials
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
| 640 | + | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| |||
0 commit comments