memoryfm.streaktimeline_static#
- memoryfm.streaktimeline_static(sclog, kind, minlength=10, year=2025, showcbar=True, savedir=None)#
Create a static Streaks Timeline for a ScrobbleLog.
- Parameters:
- sclogScrobbleLog
A ScrobbleLog for which the streaks timeline needs to be created.
- kindalbum, artist, or track
The kind of streaks timeline to create - artist, album or track.
- minlengthint, default 10
The minimum length that the streaks must have. Any streaks below this length are discarded.
- yearint, default 2025
The year for which the streaks timeline needs to be created.
- showcbarbool, default True
Show a colorbar showing the color and streak length scale.
- savedirstr, Path, default None
The path to the directory to save the timeline image.
- Returns:
- matplotlib.figure.Figure
A matplotlib figure containing the streaks timeline plot.