Skip to content

Commit 0d1a208

Browse files
authored
Recognize DARTS_CONFIGURE_MATPLOTLIB=0 (#924)
* recognize DARTS_CONFIGURE_MATPLOTLIB=0 * By default, darts still applies matplotlib configurations * If the environment variable DARTS_CONFIGURE_MATPLOTLIB=0 is set, then darts.u8plots_mplstyle is still defined but not applied * add entry to change log
1 parent e3f3309 commit 0d1a208

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Darts is still in an early development phase and we cannot always guarantee back
55

66
## [Unreleased](https://github.com/unit8co/darts/tree/master)
77
[Full Changelog](https://github.com/unit8co/darts/compare/0.19.0...master)
8+
### For users of the library:
9+
10+
**Improved**
11+
- Option to avoid global matplotlib configuration changes.
12+
[#924](https://github.com/unit8co/darts/pull/924) by [Mike Richman](https://github.com/zgana).
813

914
## [0.19.0](https://github.com/unit8co/darts/tree/0.19.0) (2022-04-13)
1015
### For users of the library:

darts/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
-----
44
"""
55

6+
import os
7+
68
import matplotlib as mpl
79
from matplotlib import cycler
810

@@ -37,4 +39,5 @@
3739
}
3840

3941

40-
mpl.rcParams.update(u8plots_mplstyle)
42+
if os.getenv("DARTS_CONFIGURE_MATPLOTLIB", "1") != "0":
43+
mpl.rcParams.update(u8plots_mplstyle)

0 commit comments

Comments
 (0)