from __future__ import absolute_import
from sunpy.timeseries.metadata import TimeSeriesMetaData
from sunpy.timeseries.timeseries_factory import TimeSeries
from sunpy.timeseries.timeseriesbase import GenericTimeSeries
from sunpy.timeseries.sources.eve import EVESpWxTimeSeries
from sunpy.timeseries.sources.goes import XRSTimeSeries
from sunpy.timeseries.sources.noaa import NOAAIndicesTimeSeries, NOAAPredictIndicesTimeSeries
from sunpy.timeseries.sources.lyra import LYRATimeSeries
from sunpy.timeseries.sources.norh import NoRHTimeSeries
from sunpy.timeseries.sources.rhessi import RHESSISummaryTimeSeries
from sunpy.timeseries.sources.fermi_gbm import GBMSummaryTimeSeries

from __future__ import absolute_import
from sunpy.timeseries.metadata import TimeSeriesMetaData
from sunpy.timeseries.timeseries_factory import TimeSeries
from sunpy.timeseries.timeseriesbase import GenericTimeSeries
from sunpy.timeseries.sources.eve import EVESpWxTimeSeries
from sunpy.timeseries.sources.goes import XRSTimeSeries
from sunpy.timeseries.sources.noaa import NOAAIndicesTimeSeries, NOAAPredictIndicesTimeSeries
from sunpy.timeseries.sources.lyra import LYRATimeSeries
from sunpy.timeseries.sources.norh import NoRHTimeSeries
from sunpy.timeseries.sources.rhessi import RHESSISummaryTimeSeries
from sunpy.timeseries.sources.fermi_gbm import GBMSummaryTimeSeries

# register pandas datetime converter with matplotlib
# This is to work around the change in pandas-dev/pandas#17710
import pandas.plotting._converter
pandas.plotting._converter.register()

Fix matplotlib / pandas 0.21 bug in examples
Fix matplotlib / pandas 0.21 bug in examples

Here we manually register the pandas matplotlib converters so people
doing manual plotting with pandas works under pandas 0.21

  from __future__ import absolute_import
  from sunpy.timeseries.metadata import TimeSeriesMetaData
  from sunpy.timeseries.timeseries_factory import TimeSeries
  from sunpy.timeseries.timeseriesbase import GenericTimeSeries
  from sunpy.timeseries.sources.eve import EVESpWxTimeSeries
  from sunpy.timeseries.sources.goes import XRSTimeSeries
  from sunpy.timeseries.sources.noaa import NOAAIndicesTimeSeries, NOAAPredictIndicesTimeSeries
  from sunpy.timeseries.sources.lyra import LYRATimeSeries
  from sunpy.timeseries.sources.norh import NoRHTimeSeries
  from sunpy.timeseries.sources.rhessi import RHESSISummaryTimeSeries
  from sunpy.timeseries.sources.fermi_gbm import GBMSummaryTimeSeries
  
+ # register pandas datetime converter with matplotlib
+ # This is to work around the change in pandas-dev/pandas#17710
+ import pandas.plotting._converter
+ pandas.plotting._converter.register()
+ 
Fix matplotlib / pandas 0.21 bug in examples
## Code Before:
from __future__ import absolute_import
from sunpy.timeseries.metadata import TimeSeriesMetaData
from sunpy.timeseries.timeseries_factory import TimeSeries
from sunpy.timeseries.timeseriesbase import GenericTimeSeries
from sunpy.timeseries.sources.eve import EVESpWxTimeSeries
from sunpy.timeseries.sources.goes import XRSTimeSeries
from sunpy.timeseries.sources.noaa import NOAAIndicesTimeSeries, NOAAPredictIndicesTimeSeries
from sunpy.timeseries.sources.lyra import LYRATimeSeries
from sunpy.timeseries.sources.norh import NoRHTimeSeries
from sunpy.timeseries.sources.rhessi import RHESSISummaryTimeSeries
from sunpy.timeseries.sources.fermi_gbm import GBMSummaryTimeSeries

## Instruction:
Fix matplotlib / pandas 0.21 bug in examples
## Code After:
from __future__ import absolute_import
from sunpy.timeseries.metadata import TimeSeriesMetaData
from sunpy.timeseries.timeseries_factory import TimeSeries
from sunpy.timeseries.timeseriesbase import GenericTimeSeries
from sunpy.timeseries.sources.eve import EVESpWxTimeSeries
from sunpy.timeseries.sources.goes import XRSTimeSeries
from sunpy.timeseries.sources.noaa import NOAAIndicesTimeSeries, NOAAPredictIndicesTimeSeries
from sunpy.timeseries.sources.lyra import LYRATimeSeries
from sunpy.timeseries.sources.norh import NoRHTimeSeries
from sunpy.timeseries.sources.rhessi import RHESSISummaryTimeSeries
from sunpy.timeseries.sources.fermi_gbm import GBMSummaryTimeSeries

# register pandas datetime converter with matplotlib
# This is to work around the change in pandas-dev/pandas#17710
import pandas.plotting._converter
pandas.plotting._converter.register()
