Skip to content

Commit

Permalink
Merge pull request #127 from joakim-hove/converters
Browse files Browse the repository at this point in the history
Uodated matplotlib converter call
  • Loading branch information
joakim-hove authored Sep 4, 2018
2 parents 92656ee + 36e8d4f commit 3cbab14
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/python/ert_gui/plottery/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3cbab14

Please sign in to comment.