Skip to content

Commit

Permalink
Add explicit legend
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Sep 30, 2023
1 parent 51bd92b commit 640b2f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moderne_visualizations_misc/maven_parent_poms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"\n",
"colors = palette.qualitative()\n",
"\n",
"ax = versions.plot.bar(stacked=True, colormap=plt.cm.colors.ListedColormap(colors))\n"
"ax = versions.plot.bar(stacked=True, colormap=plt.cm.colors.ListedColormap(colors))\n",
"ax.legend([v for c,v in versions.columns])\n"
]
}
],
Expand Down

0 comments on commit 640b2f4

Please sign in to comment.