Skip to content

Commit

Permalink
Recognize DARTS_CONFIGURE_MATPLOTLIB=0 (#924)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
zgana committed Apr 23, 2022
1 parent e3f3309 commit 0d1a208
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Darts is still in an early development phase and we cannot always guarantee back

## [Unreleased](https://github.com/unit8co/darts/tree/master)
[Full Changelog](https://github.com/unit8co/darts/compare/0.19.0...master)
### For users of the library:

**Improved**
- Option to avoid global matplotlib configuration changes.
[#924](https://github.com/unit8co/darts/pull/924) by [Mike Richman](https://github.com/zgana).

## [0.19.0](https://github.com/unit8co/darts/tree/0.19.0) (2022-04-13)
### For users of the library:
Expand Down
5 changes: 4 additions & 1 deletion darts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
-----
"""

import os

import matplotlib as mpl
from matplotlib import cycler

Expand Down Expand Up @@ -37,4 +39,5 @@
}


mpl.rcParams.update(u8plots_mplstyle)
if os.getenv("DARTS_CONFIGURE_MATPLOTLIB", "1") != "0":
mpl.rcParams.update(u8plots_mplstyle)

0 comments on commit 0d1a208

Please sign in to comment.