transbigdata.plot_activity

transbigdata.plot_activity(data, col=['stime', 'etime', 'group'], figsize=(10, 5), dpi=250, shuffle=True, xticks_rotation=0, xticks_gap=1, yticks_gap=1, fontsize=12)

Plot the activity plot of individual

Parameters:
  • data (DataFrame) – activity information of one person

  • col (List) – The column name. [starttime,endtime,group] of activities, group control the color

  • figsize (List) – The figure size

  • dpi (Number) – The dpi of the figure

  • shuffle (bool) – Whether to shuffle the activity

  • xticks_rotation (Number) – rotation angle of xticks

  • xticks_gap (Number) – gap of xticks

  • yticks_gap (Number) – gap of yticks

  • fontsize (Number) – font size of xticks and yticks