Skip to content

Commit f752fb6

Browse files
committed
Flip left and right in plot_map.
both coronal and axial
1 parent 6c221a3 commit f752fb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipy/labs/viz_tools/slicers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ def draw_cut(self, cut, data_bounds, bounding_box,
137137
raise ValueError('Invalid value for direction %s' %
138138
self.direction)
139139
ax = self.ax
140-
if self.direction == 'z':
141-
getattr(ax, type)(cut, extent=(xmax, xmin, zmin, zmax), **kwargs)
142-
else:
140+
if self.direction == 'x':
143141
getattr(ax, type)(cut, extent=(xmin, xmax, zmin, zmax), **kwargs)
142+
else:
143+
getattr(ax, type)(cut, extent=(xmax, xmin, zmin, zmax), **kwargs)
144144

145145
self._object_bounds.append((xmin_, xmax_, zmin_, zmax_))
146146
ax.axis(self.get_object_bounds())

0 commit comments

Comments
 (0)