joweich / chat-miner

Parsers and visualizations for chats
MIT License
567 stars 56 forks source link

Single graph instead of two #94

Closed amar3lo closed 1 year ago

amar3lo commented 1 year ago

it is possible to generate a single graph only? i got only this year of data

joweich commented 1 year ago

@amar3lo yes, you can create all the graphs independent from each other. The matplotlib syntax changes to this (example for calendar heatmap):

fig, ax = plt.subplots(1, 1, figsize=(9, 3))
ax = vis.calendar_heatmap(df, year=2020, cmap='Oranges', ax=ax)
amar3lo commented 1 year ago

works like a charm!!! thank you!!