Fix soma position on 2d plot
The 2D soma center used to be always positionned according to the
XY-coordinates regardless of the plane.
I think the reason why this bug went unnoticed is that neurons are most
of the time drawn in the XY plane.
@@ -139,7 +139,8 @@ def plot_soma(ax, soma, plane='xy',
color=color, alpha=alpha)
else:
if soma_outline:
- ax.add_artist(Circle(soma.center, soma.radius, color=color, alpha=alpha))
+ ax.add_artist(Circle(soma.center[[plane0, plane1]], soma.radius,
+ color=color, alpha=alpha))
else:
plane0, plane1 = _plane2col(plane)
points = [(p[plane0], p[plane1]) for p in soma.iter()]
