depictr.legend_inside#
- depictr.legend_inside(corner='top right')#
Theme fragment that moves the legend into the plotting area.
Places the legend in a corner the plot’s geometry usually leaves empty, over a semi-transparent background, so the figure needs no separate legend column. The functions that expose a
legend_insideargument add this for you.- Parameters:
corner ({"top right", "top left", "bottom right", "bottom left"} or tuple) – Which corner to use, or an explicit
((x, y), (jx, jy))pair of position and justification in axis fractions.- Return type:
plotnine.theme