| |
- builtins.object
-
- FigureFactory
- enum.Enum(builtins.object)
-
- SupportedFigures
class FigureFactory(builtins.object) |
| |
Static methods defined here:
- factory(df: pandas.core.frame.DataFrame, figure_type: GraphKey.app.modules.graphing.figure.figure_factory.SupportedFigures)
- This method generates the Figure object desired based on the figure type provided. This will allow the GUI
to not have to be rewritten every time a new graph is added to the app, for all it cares about is having a
Figure object. This will be the only file that needs to be changed to add new functionality.
:param df: A Pandas DataFrame required by the Figure class
:param figure_type: A string denoting which figure to select (eg 'scatter', 'dot', 'box')
:return: A Figure object
:raises: TypeError if the figure type is not found or supported
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class SupportedFigures(enum.Enum) |
|
SupportedFigures(value, names=None, *, module=None, qualname=None, type=None, start=1)
An enumeration. |
|
- Method resolution order:
- SupportedFigures
- enum.Enum
- builtins.object
Data and other attributes defined here:
- Bar = <SupportedFigures.Bar: 2>
- Box = <SupportedFigures.Box: (0,)>
- Scatter = <SupportedFigures.Scatter: (1,)>
Data descriptors inherited from enum.Enum:
- name
- The name of the Enum member.
- value
- The value of the Enum member.
Data descriptors inherited from enum.EnumMeta:
- __members__
- Returns a mapping of member name->value.
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.
| |