Generic class for describing which sides of a box are displayed.
Used for fine-tuning the axis, ticks, and values of a graph.
This class somewhat mimics a collections.namedtuple factory function in that it is an iterable and can have indiviual elements accessible by name. It differs from a namedtuple in a few ways:
it’s mutable
it’s not a factory function but a full-fledged class
it contains type checking, only allowing boolean values
it contains name checking, only allowing valid_names as attributes
Display the bottom side
bool
Display the left side
bool
Display the top side
bool
Display the right side
bool
DisplaySide
(object)¶Generic class for describing which sides of a box are displayed.
Used for fine-tuning the axis, ticks, and values of a graph.
This class somewhat mimics a collections.namedtuple factory function in that it is an iterable and can have indiviual elements accessible by name. It differs from a namedtuple in a few ways:
it’s mutable
it’s not a factory function but a full-fledged class
it contains type checking, only allowing boolean values
it contains name checking, only allowing valid_names as attributes
bottom (bool) – Display the bottom side
left (bool) – Display the left side
top (bool) – Display the top side
right (bool) – Display the right side
__init__
(self, bottom, left, top, right)¶Initialize self. See help(type(self)) for accurate signature.