Skip to content

Commit 039e2b5

Browse files
committed
Flip left and right in plot_map.
1 parent 91fddff commit 039e2b5

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
@@ -108,7 +108,7 @@ def do_cut(self, map, affine):
108108
elif self.direction == 'x':
109109
cut = np.rot90(map[x_map, :, :])
110110
elif self.direction == 'z':
111-
cut = np.rot90(map[:, :, z_map])
111+
cut = np.rot90(map[::-1, :, z_map])
112112
else:
113113
raise ValueError('Invalid value for direction %s' %
114114
self.direction)
@@ -161,7 +161,7 @@ def draw_left_right(self, size, bg_color, **kwargs):
161161
if self.direction == 'x':
162162
return
163163
ax = self.ax
164-
ax.text(.1, .95, 'L',
164+
ax.text(.1, .95, 'R',
165165
transform=ax.transAxes,
166166
horizontalalignment='left',
167167
verticalalignment='top',
@@ -170,7 +170,7 @@ def draw_left_right(self, size, bg_color, **kwargs):
170170
ec=bg_color, fc=bg_color, alpha=1),
171171
**kwargs)
172172

173-
ax.text(.9, .95, 'R',
173+
ax.text(.9, .95, 'L',
174174
transform=ax.transAxes,
175175
horizontalalignment='right',
176176
verticalalignment='top',

0 commit comments

Comments
 (0)