prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  XYZAxisVisuals Override Defaults
  It looks like XYZAxisVisual is not overridable in the **init** function for the verts and color arguments?  Passing in `pos=my_custom_verts` results in `TypeError: __init__() got multiple values for keyword argument 'pos'`.
  
  The `**kwds` argument looks like it is being passed through to the Line class, via LineVisual.  Does a method exist to specify the verts, color, and / or connect kwargs?  I am hesitant to submit a PR modifying **kwds since I am not 100% sure how the passing is working.
  
  
  </issue>
  <code>
  [start of vispy/visuals/xyz_axis.py]
  1 
  2 import numpy as np
  3 
  4 from .line import LineVisual
  5 
  6 
  7 class XYZAxisVisual(LineVisual):
  8     """
  9     Simple 3D axis for indicating coordinate system orientation. Axes are
  10     x=red, y=green, z=blue.
  11     """
  12     def __init__(self, **kwargs):
  13         verts = np.array([[0, 0, 0],
  14                           [1, 0, 0],
  15                           [0, 0, 0],
  16                           [0, 1, 0],
  17                           [0, 0, 0],
  18                           [0, 0, 1]])
  19         color = np.array([[1, 0, 0, 1],
  20                           [1, 0, 0, 1],
  21                           [0, 1, 0, 1],
  22                           [0, 1, 0, 1],
  23                           [0, 0, 1, 1],
  24                           [0, 0, 1, 1]])
  25         LineVisual.__init__(self, pos=verts, color=color, connect='segments',
  26                             method='gl', **kwargs)
  27
  [end of vispy/visuals/xyz_axis.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/vispy/visuals/xyz_axis.py b/vispy/visuals/xyz_axis.py
  --- a/vispy/visuals/xyz_axis.py
  +++ b/vispy/visuals/xyz_axis.py
  @@ -10,17 +10,24 @@
       x=red, y=green, z=blue.
       """
       def __init__(self, **kwargs):
  -        verts = np.array([[0, 0, 0],
  -                          [1, 0, 0],
  -                          [0, 0, 0],
  -                          [0, 1, 0],
  -                          [0, 0, 0],
  -                          [0, 0, 1]])
  +        pos = np.array([[0, 0, 0],
  +                        [1, 0, 0],
  +                        [0, 0, 0],
  +                        [0, 1, 0],
  +                        [0, 0, 0],
  +                        [0, 0, 1]])
           color = np.array([[1, 0, 0, 1],
                             [1, 0, 0, 1],
                             [0, 1, 0, 1],
                             [0, 1, 0, 1],
                             [0, 0, 1, 1],
                             [0, 0, 1, 1]])
  -        LineVisual.__init__(self, pos=verts, color=color, connect='segments',
  -                            method='gl', **kwargs)
  +        connect = 'segments'
  +        method = 'gl'
  +
  +        kwargs.setdefault('pos', pos)
  +        kwargs.setdefault('color', color)
  +        kwargs.setdefault('connect', connect)
  +        kwargs.setdefault('method', method)
  +
  +        LineVisual.__init__(self, **kwargs)
  
verification_info: {"golden_diff": "diff --git a/vispy/visuals/xyz_axis.py b/vispy/visuals/xyz_axis.py\n--- a/vispy/visuals/xyz_axis.py\n+++ b/vispy/visuals/xyz_axis.py\n@@ -10,17 +10,24 @@\n     x=red, y=green, z=blue.\n     \"\"\"\n     def __init__(self, **kwargs):\n-        verts = np.array([[0, 0, 0],\n-                          [1, 0, 0],\n-                          [0, 0, 0],\n-                          [0, 1, 0],\n-                          [0, 0, 0],\n-                          [0, 0, 1]])\n+        pos = np.array([[0, 0, 0],\n+                        [1, 0, 0],\n+                        [0, 0, 0],\n+                        [0, 1, 0],\n+                        [0, 0, 0],\n+                        [0, 0, 1]])\n         color = np.array([[1, 0, 0, 1],\n                           [1, 0, 0, 1],\n                           [0, 1, 0, 1],\n                           [0, 1, 0, 1],\n                           [0, 0, 1, 1],\n                           [0, 0, 1, 1]])\n-        LineVisual.__init__(self, pos=verts, color=color, connect='segments',\n-                            method='gl', **kwargs)\n+        connect = 'segments'\n+        method = 'gl'\n+\n+        kwargs.setdefault('pos', pos)\n+        kwargs.setdefault('color', color)\n+        kwargs.setdefault('connect', connect)\n+        kwargs.setdefault('method', method)\n+\n+        LineVisual.__init__(self, **kwargs)\n", "issue": "XYZAxisVisuals Override Defaults\nIt looks like XYZAxisVisual is not overridable in the **init** function for the verts and color arguments?  Passing in `pos=my_custom_verts` results in `TypeError: __init__() got multiple values for keyword argument 'pos'`.\n\nThe `**kwds` argument looks like it is being passed through to the Line class, via LineVisual.  Does a method exist to specify the verts, color, and / or connect kwargs?  I am hesitant to submit a PR modifying **kwds since I am not 100% sure how the passing is working.\n\n", "before_files": [{"content": "\nimport numpy as np\n\nfrom .line import LineVisual\n\n\nclass XYZAxisVisual(LineVisual):\n    \"\"\"\n    Simple 3D axis for indicating coordinate system orientation. Axes are\n    x=red, y=green, z=blue.\n    \"\"\"\n    def __init__(self, **kwargs):\n        verts = np.array([[0, 0, 0],\n                          [1, 0, 0],\n                          [0, 0, 0],\n                          [0, 1, 0],\n                          [0, 0, 0],\n                          [0, 0, 1]])\n        color = np.array([[1, 0, 0, 1],\n                          [1, 0, 0, 1],\n                          [0, 1, 0, 1],\n                          [0, 1, 0, 1],\n                          [0, 0, 1, 1],\n                          [0, 0, 1, 1]])\n        LineVisual.__init__(self, pos=verts, color=color, connect='segments',\n                            method='gl', **kwargs)\n", "path": "vispy/visuals/xyz_axis.py"}]}