Generic class for storing booleans 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:
param bottom: | Display the bottom side? |
---|---|
type bottom: | bool |
param left: | Display the left side? |
type left: | bool |
param top: | Display the top side? |
type top: | bool |
param right: | Display the right side? |
type right: | bool |
DisplaySide
(object)¶Generic class for storing booleans 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:
Parameters: |
|
---|
__init__
(self, bottom, left, top, right)¶