Skip to content

Commit

Permalink
Update data_viewer.py
Browse files Browse the repository at this point in the history
changed year spotlight to display month abbr. for x_ticks instead of month numbers - aesthetic change
  • Loading branch information
Llippeatt-git committed Aug 15, 2024
1 parent 0e52e74 commit 496a6c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion event_dash_lib/data_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from typing import Tuple


import calendar
import numpy as np
import pandas as pd
import streamlit as st
Expand Down Expand Up @@ -153,6 +153,9 @@ def lineplot(

fig = plt.figure(figsize=(fig_width, fig_height))
ax = plt.gca()

if df.index.name == 'Month':
plt.xticks(xs,[calendar.month_abbr[i] for i in xs])
for j, category_j in enumerate(categories):

ys = df[category_j]
Expand Down

0 comments on commit 496a6c8

Please sign in to comment.