1.3. pymilestone.category.py

Module containing the class for the different categories of tasks and milestones.

class pymilestone.category.Category(key, displayname, color, index=None)

Class for the different categories of tasks and milestones.

Parameters
  • key (str) – Key of the category. Can be chosen arbitrarily, but must be unique.

  • displayname (str) – Displayname of the category, which will be displayed in the legend.

  • color (Color) – A valid matplotlib color. Will be used to fill the respective bars (task) and diamonds (milestone).

  • index (int) – Index of the category. Defines the line, on which the category is drawn. Allows to draw multiple categories in one line. Usually set to None, so that each category is drawn on a separate line.

color

Color of the category.

displayname

Displayname of the category.

index

Index of the category defining the line, on which it is drawn.

key

Key of the category.