Catalog PyPI
Back to packageRELEASE DETAILS

0.0.1

PyPI

activity-plots

Activity/event timeline visualization for action localization (or detection) labels and predictions.

activityplottingtimeline
Published2 May 2025
Direct dependencies7
Transitive dependenciesNot calculated

README

Version 0.0.1 documentation

activity-plots

Plotting tools for temporal action localization (or per-frame classification) labels and predictions.

Install

pip install activity-plots

Usage

Create a data container then pass it into one of the plotting functions.

import activity_plots
import matplotlib.pyplot as plt

data = activity_plots.ActivitySegments(
    starts=[5, 13, 29], ends=[15, 17, 45], label_ids=[0, 1, 0],
    label_set=["Activity A", "Activity B"]
)
fig, ax = plt.subplots()
ax = activity_plots.multi_bar(ax, data, title="Test Plot", xlabel="Frame #")
plt.show()

Plot Types

  1. multi_bar

Example plot

  1. continuous_shaded
    • Use to visualize probabilities (model output)

Example plot

  1. single_bar
    • Use when there can only be one label per frame
    • Useful to visualize multiple videos/instances

Example plot

Data Containers

ActivitySegments

  • Build from a set of variable-length segments

ActivityProbabilities

  • Used for visualizing predictions (per-frame distributions over all activities)

segments_from_sequence

  • Helper function to build ActivitySegments from a sequence of label IDs.
  • Example:
seq = [1, 1, 1, 0, 2, 3, 3, 3, 4, -1, -1, 5]  # -1 is ignored ("background")
data = activity_plots.segments_from_sequence(seq)

TODO

  • Github action to publish on pypi
  • Stackplot
    • Check different options for "baseline"
  • Ridge plot
    • Fill color with same colormap as multi-bar
  • Better handling of overlapping segments
    • Could use additional offset
    • Might need to increase the y-axis range too
  • Create tests

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
colormaps
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
colormapsruntime
matplotlib
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
matplotlib>=3.10.0runtime
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
numpy>=2.1.0runtime
packaging
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
packaging>=21.0runtime
pandas
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
pandas>=2.2.0runtime
seaborn
Environment
{
  "extras": "",
  "marker": "extra == \"examples\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
seaborn; extra == "examples"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"test\"",
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
pytest; extra == "test"runtime

Distribution files

2 collected
activity_plots-0.0.1-py3-none-any.whl

bdist_wheel · 5.53 KB · Python py3

Source file
activity_plots-0.0.1.tar.gz

sdist · 78.17 KB · Python source

Source file

Repository

PENDING
mpeven/activity-plots

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b89704ae6fbcb42300a6301d44ccda7fa70d5c51424957902bfd007b6b4c455a

Other collected versions

View all collected versions →