You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @ETTAN93, when importing anything from Darts, we change the matplotlib settings/style for plotting.
You can deactivate this with environment variable "DARTS_CONFIGURE_MATPLOTLIB"] = "0".
Like below
import os
os.environ["DARTS_CONFIGURE_MATPLOTLIB"] = "0"
import darts
import matplotlib.pyplot as plt
import seaborn as sns
iris = sns.load_dataset('iris')
overall_corr = iris[iris.columns[:4]].corr()
sns.heatmap(overall_corr, annot=True)
plt.show()
There were already some discussion about not changing the style by default (see #924). Maybe we should apply this at some point.
I agree that not changing the global config would be better, especially if users use Darts in the context of large projects in combination with other plotting libraries.
Darts package seems to have some parameter under the hood that inserts gridlines into every matplotlib and seaborn plot:
If i do not import darts, this seaborn heatmap doesnt show gridlines,
However, if I include darts import as part of the imports, gridlines will appear in the plot:
Is there a reason why it's implemented this way?
The text was updated successfully, but these errors were encountered: