prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  scatter-matrix example don't fit into screen
  https://altair-viz.github.io/gallery/scatter_matrix.html#scatter-matrix
  ![image](https://user-images.githubusercontent.com/11561581/42128898-7df8a956-7cbe-11e8-8aa7-65e8621259c0.png)
  ```python
  #...
  ).properties(
      width=150, # suggested instead of 250
      height=150 # suggested instead of 250
  ).repeat(
  #...
  ```
  
  </issue>
  <code>
  [start of altair/vegalite/v2/examples/scatter_matrix.py]
  1 """
  2 Scatter Matrix
  3 --------------
  4 An example of using a RepeatChart to construct a multi-panel scatter plot
  5 with linked panning and zooming.
  6 """
  7 # category: scatter plots
  8 import altair as alt
  9 from vega_datasets import data
  10 
  11 alt.Chart(data.cars.url).mark_circle().encode(
  12     alt.X(alt.repeat("column"), type='quantitative'),
  13     alt.Y(alt.repeat("row"), type='quantitative'),
  14     color='Origin:N'
  15 ).properties(
  16     width=250,
  17     height=250
  18 ).repeat(
  19     row=['Horsepower', 'Acceleration', 'Miles_per_Gallon'],
  20     column=['Miles_per_Gallon', 'Acceleration', 'Horsepower']
  21 ).interactive()
  22
  [end of altair/vegalite/v2/examples/scatter_matrix.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/altair/vegalite/v2/examples/scatter_matrix.py b/altair/vegalite/v2/examples/scatter_matrix.py
  --- a/altair/vegalite/v2/examples/scatter_matrix.py
  +++ b/altair/vegalite/v2/examples/scatter_matrix.py
  @@ -13,8 +13,8 @@
       alt.Y(alt.repeat("row"), type='quantitative'),
       color='Origin:N'
   ).properties(
  -    width=250,
  -    height=250
  +    width=150,
  +    height=150
   ).repeat(
       row=['Horsepower', 'Acceleration', 'Miles_per_Gallon'],
       column=['Miles_per_Gallon', 'Acceleration', 'Horsepower']
  
verification_info: {"golden_diff": "diff --git a/altair/vegalite/v2/examples/scatter_matrix.py b/altair/vegalite/v2/examples/scatter_matrix.py\n--- a/altair/vegalite/v2/examples/scatter_matrix.py\n+++ b/altair/vegalite/v2/examples/scatter_matrix.py\n@@ -13,8 +13,8 @@\n     alt.Y(alt.repeat(\"row\"), type='quantitative'),\n     color='Origin:N'\n ).properties(\n-    width=250,\n-    height=250\n+    width=150,\n+    height=150\n ).repeat(\n     row=['Horsepower', 'Acceleration', 'Miles_per_Gallon'],\n     column=['Miles_per_Gallon', 'Acceleration', 'Horsepower']\n", "issue": "scatter-matrix example don't fit into screen\nhttps://altair-viz.github.io/gallery/scatter_matrix.html#scatter-matrix\r\n![image](https://user-images.githubusercontent.com/11561581/42128898-7df8a956-7cbe-11e8-8aa7-65e8621259c0.png)\r\n```python\r\n#...\r\n).properties(\r\n    width=150, # suggested instead of 250\r\n    height=150 # suggested instead of 250\r\n).repeat(\r\n#...\r\n```\n", "before_files": [{"content": "\"\"\"\nScatter Matrix\n--------------\nAn example of using a RepeatChart to construct a multi-panel scatter plot\nwith linked panning and zooming.\n\"\"\"\n# category: scatter plots\nimport altair as alt\nfrom vega_datasets import data\n\nalt.Chart(data.cars.url).mark_circle().encode(\n    alt.X(alt.repeat(\"column\"), type='quantitative'),\n    alt.Y(alt.repeat(\"row\"), type='quantitative'),\n    color='Origin:N'\n).properties(\n    width=250,\n    height=250\n).repeat(\n    row=['Horsepower', 'Acceleration', 'Miles_per_Gallon'],\n    column=['Miles_per_Gallon', 'Acceleration', 'Horsepower']\n).interactive()\n", "path": "altair/vegalite/v2/examples/scatter_matrix.py"}]}