prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Wrong plot in goes hek m25 example
  <!--
  We know asking good questions takes effort, and we appreciate your time.
  Thank you.
  
  Please be aware that everyone has to follow our code of conduct:
  https://github.com/sunpy/sunpy/blob/master/CODE_OF_CONDUCT.rst
  
  Also that these comments are hidden when you submit this github issue.
  
  Please have a search on our GitHub repository to see if a similar issue has already been posted.
  If a similar issue is closed, have a quick look to see if you are satisfied by the resolution.
  If not please go ahead and open an issue!
  -->
  
  ### Description
  <!-- Provide a general description of the bug. -->
  The plot in timeseries example gallery of sunpy for goes and hek flare data looks very different when same code is run on master.
  
  ### Expected behavior
  <!-- What did you expect to happen. -->
  It should look like this
  https://docs.sunpy.org/en/stable/_images/sphx_glr_goes_hek_m25_001.png
  
  ### Actual behavior
  <!--
  What actually happened.
  Was the output confusing or poorly described?
  -->
  ![goes_xrs](https://user-images.githubusercontent.com/43112347/90966194-2e191800-e4ed-11ea-9228-0378e1c2a7bb.png)
  ### Steps to Reproduce
  <!--
  Please include **code** that reproduces the issue whenever possible.
  The best reproductions are self-contained scripts with minimal dependencies.
  -->
  
  https://docs.sunpy.org/en/stable/generated/gallery/time_series/goes_hek_m25.html#sphx-glr-generated-gallery-time-series-goes-hek-m25-py run this example.
  
  ### System Details
  <!--
  We at least need to know the sunpy version you are using.
  We provide a short function (``sunpy.util.system_info()``) that will provide most of the below information.
  This step is optional but strongly recommended.
  -->
  - SunPy Version: master, 2.0.1, 2.0.rc2 all are giving error
  - Astropy Version: 4.0.1.post1
  - Python Version: 3.8.5, 3.7.5 both were giving error
  - OS information: Ubuntu 18.04 LTS
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `examples/time_series/goes_hek_m25.py`
  Content:
  ```
  1 """
  2 ==============================
  3 Flare times on a GOES XRS plot
  4 ==============================
  5 
  6 How to plot flare times as provided by the HEK on a GOES XRS plot.
  7 """
  8 import matplotlib.pyplot as plt
  9 
  10 from sunpy.net import Fido
  11 from sunpy.net import attrs as a
  12 from sunpy.net import hek
  13 from sunpy.time import TimeRange, parse_time
  14 from sunpy.timeseries import TimeSeries
  15 
  16 ###############################################################################
  17 # Let's first grab GOES XRS data for a particular time of interest
  18 tr = TimeRange(['2011-06-07 04:00', '2011-06-07 12:00'])
  19 results = Fido.search(a.Time(tr), a.Instrument.xrs)
  20 
  21 ###############################################################################
  22 # Then download the data and load it into a TimeSeries
  23 files = Fido.fetch(results)
  24 goes = TimeSeries(files)
  25 
  26 ###############################################################################
  27 # Next lets grab the HEK flare data for this time from the NOAA Space Weather
  28 # Prediction Center (SWPC)
  29 client = hek.HEKClient()
  30 flares_hek = client.search(hek.attrs.Time(tr.start, tr.end),
  31                            hek.attrs.FL, hek.attrs.FRM.Name == 'SWPC')
  32 
  33 ###############################################################################
  34 # Lets plot everything together
  35 fig, ax = plt.subplots()
  36 goes.plot()
  37 ax.axvline(parse_time(flares_hek[0].get('event_peaktime')).plot_date)
  38 ax.axvspan(parse_time(flares_hek[0].get('event_starttime')).plot_date,
  39            parse_time(flares_hek[0].get('event_endtime')).plot_date,
  40            alpha=0.2, label=flares_hek[0].get('fl_goescls'))
  41 ax.legend(loc=2)
  42 ax.set_yscale('log')
  43 plt.show()
  44
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/examples/time_series/goes_hek_m25.py b/examples/time_series/goes_hek_m25.py
  --- a/examples/time_series/goes_hek_m25.py
  +++ b/examples/time_series/goes_hek_m25.py
  @@ -34,9 +34,9 @@
   # Lets plot everything together
   fig, ax = plt.subplots()
   goes.plot()
  -ax.axvline(parse_time(flares_hek[0].get('event_peaktime')).plot_date)
  -ax.axvspan(parse_time(flares_hek[0].get('event_starttime')).plot_date,
  -           parse_time(flares_hek[0].get('event_endtime')).plot_date,
  +ax.axvline(parse_time(flares_hek[0].get('event_peaktime')).datetime)
  +ax.axvspan(parse_time(flares_hek[0].get('event_starttime')).datetime,
  +           parse_time(flares_hek[0].get('event_endtime')).datetime,
              alpha=0.2, label=flares_hek[0].get('fl_goescls'))
   ax.legend(loc=2)
   ax.set_yscale('log')
  
verification_info: {"golden_diff": "diff --git a/examples/time_series/goes_hek_m25.py b/examples/time_series/goes_hek_m25.py\n--- a/examples/time_series/goes_hek_m25.py\n+++ b/examples/time_series/goes_hek_m25.py\n@@ -34,9 +34,9 @@\n # Lets plot everything together\n fig, ax = plt.subplots()\n goes.plot()\n-ax.axvline(parse_time(flares_hek[0].get('event_peaktime')).plot_date)\n-ax.axvspan(parse_time(flares_hek[0].get('event_starttime')).plot_date,\n-           parse_time(flares_hek[0].get('event_endtime')).plot_date,\n+ax.axvline(parse_time(flares_hek[0].get('event_peaktime')).datetime)\n+ax.axvspan(parse_time(flares_hek[0].get('event_starttime')).datetime,\n+           parse_time(flares_hek[0].get('event_endtime')).datetime,\n            alpha=0.2, label=flares_hek[0].get('fl_goescls'))\n ax.legend(loc=2)\n ax.set_yscale('log')\n", "issue": "Wrong plot in goes hek m25 example\n<!--\r\nWe know asking good questions takes effort, and we appreciate your time.\r\nThank you.\r\n\r\nPlease be aware that everyone has to follow our code of conduct:\r\nhttps://github.com/sunpy/sunpy/blob/master/CODE_OF_CONDUCT.rst\r\n\r\nAlso that these comments are hidden when you submit this github issue.\r\n\r\nPlease have a search on our GitHub repository to see if a similar issue has already been posted.\r\nIf a similar issue is closed, have a quick look to see if you are satisfied by the resolution.\r\nIf not please go ahead and open an issue!\r\n-->\r\n\r\n### Description\r\n<!-- Provide a general description of the bug. -->\r\nThe plot in timeseries example gallery of sunpy for goes and hek flare data looks very different when same code is run on master.\r\n\r\n### Expected behavior\r\n<!-- What did you expect to happen. -->\r\nIt should look like this\r\nhttps://docs.sunpy.org/en/stable/_images/sphx_glr_goes_hek_m25_001.png\r\n\r\n### Actual behavior\r\n<!--\r\nWhat actually happened.\r\nWas the output confusing or poorly described?\r\n-->\r\n![goes_xrs](https://user-images.githubusercontent.com/43112347/90966194-2e191800-e4ed-11ea-9228-0378e1c2a7bb.png)\r\n### Steps to Reproduce\r\n<!--\r\nPlease include **code** that reproduces the issue whenever possible.\r\nThe best reproductions are self-contained scripts with minimal dependencies.\r\n-->\r\n\r\nhttps://docs.sunpy.org/en/stable/generated/gallery/time_series/goes_hek_m25.html#sphx-glr-generated-gallery-time-series-goes-hek-m25-py run this example.\r\n\r\n### System Details\r\n<!--\r\nWe at least need to know the sunpy version you are using.\r\nWe provide a short function (``sunpy.util.system_info()``) that will provide most of the below information.\r\nThis step is optional but strongly recommended.\r\n-->\r\n- SunPy Version: master, 2.0.1, 2.0.rc2 all are giving error\r\n- Astropy Version: 4.0.1.post1\r\n- Python Version: 3.8.5, 3.7.5 both were giving error\r\n- OS information: Ubuntu 18.04 LTS\r\n\n", "before_files": [{"content": "\"\"\"\n==============================\nFlare times on a GOES XRS plot\n==============================\n\nHow to plot flare times as provided by the HEK on a GOES XRS plot.\n\"\"\"\nimport matplotlib.pyplot as plt\n\nfrom sunpy.net import Fido\nfrom sunpy.net import attrs as a\nfrom sunpy.net import hek\nfrom sunpy.time import TimeRange, parse_time\nfrom sunpy.timeseries import TimeSeries\n\n###############################################################################\n# Let's first grab GOES XRS data for a particular time of interest\ntr = TimeRange(['2011-06-07 04:00', '2011-06-07 12:00'])\nresults = Fido.search(a.Time(tr), a.Instrument.xrs)\n\n###############################################################################\n# Then download the data and load it into a TimeSeries\nfiles = Fido.fetch(results)\ngoes = TimeSeries(files)\n\n###############################################################################\n# Next lets grab the HEK flare data for this time from the NOAA Space Weather\n# Prediction Center (SWPC)\nclient = hek.HEKClient()\nflares_hek = client.search(hek.attrs.Time(tr.start, tr.end),\n                           hek.attrs.FL, hek.attrs.FRM.Name == 'SWPC')\n\n###############################################################################\n# Lets plot everything together\nfig, ax = plt.subplots()\ngoes.plot()\nax.axvline(parse_time(flares_hek[0].get('event_peaktime')).plot_date)\nax.axvspan(parse_time(flares_hek[0].get('event_starttime')).plot_date,\n           parse_time(flares_hek[0].get('event_endtime')).plot_date,\n           alpha=0.2, label=flares_hek[0].get('fl_goescls'))\nax.legend(loc=2)\nax.set_yscale('log')\nplt.show()\n", "path": "examples/time_series/goes_hek_m25.py"}], "after_files": [{"content": "\"\"\"\n==============================\nFlare times on a GOES XRS plot\n==============================\n\nHow to plot flare times as provided by the HEK on a GOES XRS plot.\n\"\"\"\nimport matplotlib.pyplot as plt\n\nfrom sunpy.net import Fido\nfrom sunpy.net import attrs as a\nfrom sunpy.net import hek\nfrom sunpy.time import TimeRange, parse_time\nfrom sunpy.timeseries import TimeSeries\n\n###############################################################################\n# Let's first grab GOES XRS data for a particular time of interest\ntr = TimeRange(['2011-06-07 04:00', '2011-06-07 12:00'])\nresults = Fido.search(a.Time(tr), a.Instrument.xrs)\n\n###############################################################################\n# Then download the data and load it into a TimeSeries\nfiles = Fido.fetch(results)\ngoes = TimeSeries(files)\n\n###############################################################################\n# Next lets grab the HEK flare data for this time from the NOAA Space Weather\n# Prediction Center (SWPC)\nclient = hek.HEKClient()\nflares_hek = client.search(hek.attrs.Time(tr.start, tr.end),\n                           hek.attrs.FL, hek.attrs.FRM.Name == 'SWPC')\n\n###############################################################################\n# Lets plot everything together\nfig, ax = plt.subplots()\ngoes.plot()\nax.axvline(parse_time(flares_hek[0].get('event_peaktime')).datetime)\nax.axvspan(parse_time(flares_hek[0].get('event_starttime')).datetime,\n           parse_time(flares_hek[0].get('event_endtime')).datetime,\n           alpha=0.2, label=flares_hek[0].get('fl_goescls'))\nax.legend(loc=2)\nax.set_yscale('log')\nplt.show()\n", "path": "examples/time_series/goes_hek_m25.py"}]}