prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Example Incorrect
  ### Description
  
  This example says it's for plotting sounding data but the example uses MET data.  We should update this to be what it was originally intended.
  https://arm-doe.github.io/ACT/source/auto_examples/plotting/plot_sonde.html
  
  
  
  </issue>
  <code>
  [start of examples/plotting/plot_sonde.py]
  1 """
  2 Plot a timeseries of sounding data
  3 ----------------------------------------------------
  4 
  5 This is a simple example for how to plot a timeseries of sounding
  6 data from the ARM SGP site.
  7 
  8 Author: Robert Jackson
  9 """
  10 
  11 from matplotlib import pyplot as plt
  12 
  13 import act
  14 
  15 files = act.tests.sample_files.EXAMPLE_MET_WILDCARD
  16 met_ds = act.io.armfiles.read_netcdf(files)
  17 print(met_ds)
  18 met_temp = met_ds.temp_mean
  19 met_rh = met_ds.rh_mean
  20 met_lcl = (20.0 + met_temp / 5.0) * (100.0 - met_rh) / 1000.0
  21 met_ds['met_lcl'] = met_lcl * 1000.0
  22 met_ds['met_lcl'].attrs['units'] = 'm'
  23 met_ds['met_lcl'].attrs['long_name'] = 'LCL Calculated from SGP MET E13'
  24 
  25 # Plot data
  26 display = act.plotting.TimeSeriesDisplay(met_ds)
  27 display.add_subplots((3,), figsize=(15, 10))
  28 display.plot('wspd_vec_mean', subplot_index=(0,))
  29 display.plot('temp_mean', subplot_index=(1,))
  30 display.plot('rh_mean', subplot_index=(2,))
  31 plt.show()
  32
  [end of examples/plotting/plot_sonde.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/examples/plotting/plot_sonde.py b/examples/plotting/plot_sonde.py
  --- a/examples/plotting/plot_sonde.py
  +++ b/examples/plotting/plot_sonde.py
  @@ -12,20 +12,14 @@
   
   import act
   
  -files = act.tests.sample_files.EXAMPLE_MET_WILDCARD
  -met_ds = act.io.armfiles.read_netcdf(files)
  -print(met_ds)
  -met_temp = met_ds.temp_mean
  -met_rh = met_ds.rh_mean
  -met_lcl = (20.0 + met_temp / 5.0) * (100.0 - met_rh) / 1000.0
  -met_ds['met_lcl'] = met_lcl * 1000.0
  -met_ds['met_lcl'].attrs['units'] = 'm'
  -met_ds['met_lcl'].attrs['long_name'] = 'LCL Calculated from SGP MET E13'
  +files = act.tests.sample_files.EXAMPLE_SONDE1
  +sonde_ds = act.io.armfiles.read_netcdf(files)
  +print(sonde_ds)
   
   # Plot data
  -display = act.plotting.TimeSeriesDisplay(met_ds)
  +display = act.plotting.TimeSeriesDisplay(sonde_ds)
   display.add_subplots((3,), figsize=(15, 10))
  -display.plot('wspd_vec_mean', subplot_index=(0,))
  -display.plot('temp_mean', subplot_index=(1,))
  -display.plot('rh_mean', subplot_index=(2,))
  +display.plot('wspd', subplot_index=(0,))
  +display.plot('tdry', subplot_index=(1,))
  +display.plot('rh', subplot_index=(2,))
   plt.show()
  
verification_info: {"golden_diff": "diff --git a/examples/plotting/plot_sonde.py b/examples/plotting/plot_sonde.py\n--- a/examples/plotting/plot_sonde.py\n+++ b/examples/plotting/plot_sonde.py\n@@ -12,20 +12,14 @@\n \n import act\n \n-files = act.tests.sample_files.EXAMPLE_MET_WILDCARD\n-met_ds = act.io.armfiles.read_netcdf(files)\n-print(met_ds)\n-met_temp = met_ds.temp_mean\n-met_rh = met_ds.rh_mean\n-met_lcl = (20.0 + met_temp / 5.0) * (100.0 - met_rh) / 1000.0\n-met_ds['met_lcl'] = met_lcl * 1000.0\n-met_ds['met_lcl'].attrs['units'] = 'm'\n-met_ds['met_lcl'].attrs['long_name'] = 'LCL Calculated from SGP MET E13'\n+files = act.tests.sample_files.EXAMPLE_SONDE1\n+sonde_ds = act.io.armfiles.read_netcdf(files)\n+print(sonde_ds)\n \n # Plot data\n-display = act.plotting.TimeSeriesDisplay(met_ds)\n+display = act.plotting.TimeSeriesDisplay(sonde_ds)\n display.add_subplots((3,), figsize=(15, 10))\n-display.plot('wspd_vec_mean', subplot_index=(0,))\n-display.plot('temp_mean', subplot_index=(1,))\n-display.plot('rh_mean', subplot_index=(2,))\n+display.plot('wspd', subplot_index=(0,))\n+display.plot('tdry', subplot_index=(1,))\n+display.plot('rh', subplot_index=(2,))\n plt.show()\n", "issue": "Example Incorrect\n### Description\r\n\r\nThis example says it's for plotting sounding data but the example uses MET data.  We should update this to be what it was originally intended.\r\nhttps://arm-doe.github.io/ACT/source/auto_examples/plotting/plot_sonde.html\r\n\r\n\n", "before_files": [{"content": "\"\"\"\nPlot a timeseries of sounding data\n----------------------------------------------------\n\nThis is a simple example for how to plot a timeseries of sounding\ndata from the ARM SGP site.\n\nAuthor: Robert Jackson\n\"\"\"\n\nfrom matplotlib import pyplot as plt\n\nimport act\n\nfiles = act.tests.sample_files.EXAMPLE_MET_WILDCARD\nmet_ds = act.io.armfiles.read_netcdf(files)\nprint(met_ds)\nmet_temp = met_ds.temp_mean\nmet_rh = met_ds.rh_mean\nmet_lcl = (20.0 + met_temp / 5.0) * (100.0 - met_rh) / 1000.0\nmet_ds['met_lcl'] = met_lcl * 1000.0\nmet_ds['met_lcl'].attrs['units'] = 'm'\nmet_ds['met_lcl'].attrs['long_name'] = 'LCL Calculated from SGP MET E13'\n\n# Plot data\ndisplay = act.plotting.TimeSeriesDisplay(met_ds)\ndisplay.add_subplots((3,), figsize=(15, 10))\ndisplay.plot('wspd_vec_mean', subplot_index=(0,))\ndisplay.plot('temp_mean', subplot_index=(1,))\ndisplay.plot('rh_mean', subplot_index=(2,))\nplt.show()\n", "path": "examples/plotting/plot_sonde.py"}]}