Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (14 loc) · 640 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 640 Bytes

Simple Gantt chart plotting function.

gantt_chart(slots, labels, active_color, passive_color)

Arguments:

  • slots: Matrix with rows per activity.
    • Columns should correspond to alternating begin and end times (absolute) of an activity.
    • Rows should be padded to the right with zeros if number of slots is unequal for different activities.
  • labels: Column containing activity labels.
  • active_color: Color of active slots of an activity.
  • passive_color: Color of passive slots of an activity.

Returns:

  • fig: Figure handle
  • ax: Axis handle

Example:

Example Gantt Chart