class plotnine.themes.themeable.legend_position(theme_element=None)[source]

Bases: plotnine.themes.themeable.themeable

Location of legend

theme_elementstr or tuple

If a string it should be one of right, left, top bottom or none. If a tuple, it should be two floats each in the approximate range [0, 1]. The tuple specifies the location of the legend in screen coordinates.