diff --git a/python/python/ert_gui/plottery/__init__.py b/python/python/ert_gui/plottery/__init__.py index ad23243bee5..2203e8dd108 100644 --- a/python/python/ert_gui/plottery/__init__.py +++ b/python/python/ert_gui/plottery/__init__.py @@ -1,8 +1,11 @@ # At least for some combinations of pandas and matplotlib the numpy.datetime64 # dates coming from pandas are not correctly recognized/converted by matplotlib. # Calling this converter.register() method seems to fix the problem. -from pandas.tseries import converter -converter.register() +try: + from pandas.plotting import register_matplotlib_converters + register_matplotlib_converters() +except: + pass from .plot_data_gatherer import PlotDataGatherer from .plot_style import PlotStyle