Skip to content

Commit

Permalink
Update matplotlib style to ING theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcis committed Jul 7, 2020
1 parent 6187707 commit e933f16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion popmon/visualization/utils.py
Expand Up @@ -26,10 +26,12 @@
import numpy as np
import pandas as pd
import pybase64
from ing_theme_matplotlib import mpl_style

NUM_NS_DAY = 24 * 3600 * int(1e9)

logger = logging.getLogger()
mpl_style(dark=False)


def plt_to_base64():
Expand Down Expand Up @@ -76,7 +78,7 @@ def plot_bars_b64(data, labels=None, bounds=None, ylim=False, skip_empty=True):

index = np.arange(n)
width = (index[1] - index[0]) * 0.9 if n >= 2 else 1.0
ax.bar(index, data, width=width, align="center", alpha=0.5)
ax.bar(index, data, width=width, align="center")

if labels:
ax.set_xticks(index)
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Expand Up @@ -5,4 +5,4 @@ nbconvert>=5.3.1
jupyter_client>=5.2.3
ipykernel>=5.1.3
black>=19.10b0
isort>=4.3.21
isort==4.3.21
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -9,3 +9,4 @@ matplotlib>=2.2.3
joblib>=0.14.0
pybase64>=1.0.1
htmlmin
ing_theme_matplotlib

0 comments on commit e933f16

Please sign in to comment.