plotnine_prism.themeable
plotnine_prism.themeable
Add themeables for theme_prism
axis_ticks_x— Themeable for ticks on x axis that is missing in plotnine</>axis_ticks_y— Themeable for ticks on y axis that is missing in plotnine</>prism_ticks_length_x— Themeable for ticks length on x axis</>prism_ticks_length_y— Themeable for ticks length on y axis</>prism_ticks_length— Themeable for ticks length</>
plotnine_prism.themeable.axis_ticks_x(theme_element=None)
Themeable for ticks on x axis that is missing in plotnine
rcParams— Return themeables rcparams to an rcparam dict before plotting.</>
__eq__(other)(bool) — Mostly for unittesting.</>apply(theme)— Called by the theme to apply the themeable</>apply_ax(ax)— Apply themeable to the axis</>apply_figure(figure,targets)— Apply theme to the figure</>blank_ax(ax)— When it's set blank</>blank_figure(figure,targets)— Blank out elements on the figure</>from_class_name(name,theme_element)(out : Themeable) — Create an themeable by name</>is_blank()(bool) — Return True if theme_element is made of element_blank</>merge(other)— Merge properties of other into self</>setup_figure(figure)— Apply theme to the figure</>
from_class_name(name, theme_element)
Create an themeable by name
name(str) — Class nametheme_element(element object) — A of the type required by the themeFor lines, text and rects it should be one of: :class:element_line, :class:element_rect, :class:element_textor :class:element_blank
is_blank() → bool
Return True if theme_element is made of element_blank
merge(other)
Merge properties of other into self
ValueError— If any of the properties are blank
__eq__(other) → bool
Mostly for unittesting.
apply(theme)
Called by the theme to apply the themeable
Subclasses shouldn't have to override this method to customize.
apply_figure(figure, targets)
Apply theme to the figure
Compared to :meth:setup_figure, this method is called
after plotting and all the elements are drawn onto the
figure.
setup_figure(figure)
Apply theme to the figure
Compared to :meth:apply_figure, this method is called
before any plotting is done. This is necessary in some
cases where the drawing functions need(or can make use of)
this information.
blank_figure(figure, targets)
Blank out elements on the figure
apply_ax(ax)
Apply themeable to the axis
blank_ax(ax)
When it's set blank
plotnine_prism.themeable.axis_ticks_y(theme_element=None)
Themeable for ticks on y axis that is missing in plotnine
rcParams— Return themeables rcparams to an rcparam dict before plotting.</>
__eq__(other)(bool) — Mostly for unittesting.</>apply(theme)— Called by the theme to apply the themeable</>apply_ax(ax)— Apply themeable to the axis</>apply_figure(figure,targets)— Apply theme to the figure</>blank_ax(ax)— When it's set blank</>blank_figure(figure,targets)— Blank out elements on the figure</>from_class_name(name,theme_element)(out : Themeable) — Create an themeable by name</>is_blank()(bool) — Return True if theme_element is made of element_blank</>merge(other)— Merge properties of other into self</>setup_figure(figure)— Apply theme to the figure</>
from_class_name(name, theme_element)
Create an themeable by name
name(str) — Class nametheme_element(element object) — A of the type required by the themeFor lines, text and rects it should be one of: :class:element_line, :class:element_rect, :class:element_textor :class:element_blank
is_blank() → bool
Return True if theme_element is made of element_blank
merge(other)
Merge properties of other into self
ValueError— If any of the properties are blank
__eq__(other) → bool
Mostly for unittesting.
apply(theme)
Called by the theme to apply the themeable
Subclasses shouldn't have to override this method to customize.
apply_figure(figure, targets)
Apply theme to the figure
Compared to :meth:setup_figure, this method is called
after plotting and all the elements are drawn onto the
figure.
setup_figure(figure)
Apply theme to the figure
Compared to :meth:apply_figure, this method is called
before any plotting is done. This is necessary in some
cases where the drawing functions need(or can make use of)
this information.
blank_figure(figure, targets)
Blank out elements on the figure
apply_ax(ax)
Apply themeable to the axis
blank_ax(ax)
When it's set blank
plotnine_prism.themeable.prism_ticks_length_x(theme_element=None)
Themeable for ticks length on x axis
rcParams— Return themeables rcparams to an rcparam dict before plotting.</>
__eq__(other)(bool) — Mostly for unittesting.</>apply(theme)— Called by the theme to apply the themeable</>apply_ax(ax)— Apply themeable to the axis</>apply_figure(figure,targets)— Apply theme to the figure</>blank_ax(ax)— When it's set blank</>blank_figure(figure,targets)— Blank out elements on the figure</>from_class_name(name,theme_element)(out : Themeable) — Create an themeable by name</>is_blank()(bool) — Return True if theme_element is made of element_blank</>merge(other)— Merge properties of other into self</>setup_figure(figure)— Apply theme to the figure</>
from_class_name(name, theme_element)
Create an themeable by name
name(str) — Class nametheme_element(element object) — A of the type required by the themeFor lines, text and rects it should be one of: :class:element_line, :class:element_rect, :class:element_textor :class:element_blank
is_blank() → bool
Return True if theme_element is made of element_blank
merge(other)
Merge properties of other into self
ValueError— If any of the properties are blank
__eq__(other) → bool
Mostly for unittesting.
apply(theme)
Called by the theme to apply the themeable
Subclasses shouldn't have to override this method to customize.
apply_figure(figure, targets)
Apply theme to the figure
Compared to :meth:setup_figure, this method is called
after plotting and all the elements are drawn onto the
figure.
setup_figure(figure)
Apply theme to the figure
Compared to :meth:apply_figure, this method is called
before any plotting is done. This is necessary in some
cases where the drawing functions need(or can make use of)
this information.
blank_figure(figure, targets)
Blank out elements on the figure
apply_ax(ax)
Apply themeable to the axis
blank_ax(ax)
When it's set blank
plotnine_prism.themeable.prism_ticks_length_y(theme_element=None)
Themeable for ticks length on y axis
rcParams— Return themeables rcparams to an rcparam dict before plotting.</>
__eq__(other)(bool) — Mostly for unittesting.</>apply(theme)— Called by the theme to apply the themeable</>apply_ax(ax)— Apply themeable to the axis</>apply_figure(figure,targets)— Apply theme to the figure</>blank_ax(ax)— When it's set blank</>blank_figure(figure,targets)— Blank out elements on the figure</>from_class_name(name,theme_element)(out : Themeable) — Create an themeable by name</>is_blank()(bool) — Return True if theme_element is made of element_blank</>merge(other)— Merge properties of other into self</>setup_figure(figure)— Apply theme to the figure</>
from_class_name(name, theme_element)
Create an themeable by name
name(str) — Class nametheme_element(element object) — A of the type required by the themeFor lines, text and rects it should be one of: :class:element_line, :class:element_rect, :class:element_textor :class:element_blank
is_blank() → bool
Return True if theme_element is made of element_blank
merge(other)
Merge properties of other into self
ValueError— If any of the properties are blank
__eq__(other) → bool
Mostly for unittesting.
apply(theme)
Called by the theme to apply the themeable
Subclasses shouldn't have to override this method to customize.
apply_figure(figure, targets)
Apply theme to the figure
Compared to :meth:setup_figure, this method is called
after plotting and all the elements are drawn onto the
figure.
setup_figure(figure)
Apply theme to the figure
Compared to :meth:apply_figure, this method is called
before any plotting is done. This is necessary in some
cases where the drawing functions need(or can make use of)
this information.
blank_figure(figure, targets)
Blank out elements on the figure
apply_ax(ax)
Apply themeable to the axis
blank_ax(ax)
When it's set blank
plotnine_prism.themeable.prism_ticks_length(theme_element=None)
Themeable for ticks length
rcParams— Return themeables rcparams to an rcparam dict before plotting.</>
__eq__(other)(bool) — Mostly for unittesting.</>apply(theme)— Called by the theme to apply the themeable</>apply_ax(ax)— Apply themeable to the axis</>apply_figure(figure,targets)— Apply theme to the figure</>blank_ax(ax)— When it's set blank</>blank_figure(figure,targets)— Blank out elements on the figure</>from_class_name(name,theme_element)(out : Themeable) — Create an themeable by name</>is_blank()(bool) — Return True if theme_element is made of element_blank</>merge(other)— Merge properties of other into self</>setup_figure(figure)— Apply theme to the figure</>
from_class_name(name, theme_element)
Create an themeable by name
name(str) — Class nametheme_element(element object) — A of the type required by the themeFor lines, text and rects it should be one of: :class:element_line, :class:element_rect, :class:element_textor :class:element_blank
is_blank() → bool
Return True if theme_element is made of element_blank
merge(other)
Merge properties of other into self
ValueError— If any of the properties are blank
__eq__(other) → bool
Mostly for unittesting.
apply(theme)
Called by the theme to apply the themeable
Subclasses shouldn't have to override this method to customize.
apply_figure(figure, targets)
Apply theme to the figure
Compared to :meth:setup_figure, this method is called
after plotting and all the elements are drawn onto the
figure.
setup_figure(figure)
Apply theme to the figure
Compared to :meth:apply_figure, this method is called
before any plotting is done. This is necessary in some
cases where the drawing functions need(or can make use of)
this information.
blank_figure(figure, targets)
Blank out elements on the figure
apply_ax(ax)
Apply themeable to the axis
blank_ax(ax)
When it's set blank