Skip to content

Commit

Permalink
BUG: fix matplotlib deprecation for colorbar axes
Browse files Browse the repository at this point in the history
  • Loading branch information
lzkelley committed Nov 16, 2023
1 parent 230dcab commit 986d8f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/host-relations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"fig, ax = plot.figax()\n",
"ax.scatter(host.mbulge/MSOL, mbh/MSOL, color=colors)\n",
"\n",
"plt.colorbar(smap)\n",
"plt.colorbar(smap, ax=ax)\n",
"\n",
"plt.show()"
]
Expand Down Expand Up @@ -187,7 +187,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.11.4"
},
"toc": {
"base_numbering": 1,
Expand Down

0 comments on commit 986d8f8

Please sign in to comment.