Skip to content

Commit

Permalink
Merge pull request #46 from ing-bank/feature/matplotlib_ing_style
Browse files Browse the repository at this point in the history
Use matplotlib ING style
  • Loading branch information
sbrugman authored Jul 8, 2020
2 parents 6187707 + e933f16 commit 729ffd9
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 729ffd9

Please sign in to comment.