plotnine.themes.themeable.legend_position

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

Bases: plotnine.themes.themeable.themeable

Location of legend

Parameters:
theme_element : str 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.