Skip to content

[BUG] Darts matplotlib style settings should be optional #892

@zgana

Description

@zgana

Describe the bug
Importing anything from darts results in significant changes to the global matplotlib configuration. The style is pretty good, but it should be optional.

To Reproduce

import matplotlib.pyplot as plt
import darts
plt.figure()

Expected behavior
There is a way to make the figure reflect the user's personal matplotlibrc without manually undoing everything listed in darts/__init__.py.

System (please complete the following information):

  • Python version: 3.7.9
  • darts==0.17.1

Additional context
A possible fix would be to suppress this call if something like export DARTS_CONFIGURE_MATPLOTLIB=0 is set.

Metadata

Metadata

Assignees

Labels

improvementNew feature or improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions