Back to the main page.

Bug 1606 - ft_plot_slice fails for orientation different than z-direction

Status CLOSED INVALID
Reported 2012-07-08 12:48:00 +0200
Modified 2012-08-23 10:47:45 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2012-07-08 12:48:48 +0200

if you do dat = randn(11,11,11); figure ft_plot_slice(dat, 'location', [6 6 6], 'orientation', [1 0 0]) figure ft_plot_slice(dat, 'location', [6 6 6], 'orientation', [0 1 0]) figure ft_plot_slice(dat, 'location', [6 6 6], 'orientation', [0 0 1]) then only figure 3 is non-empty, whereas I had expected all three to display a slice through the middle.


Robert Oostenveld - 2012-07-09 09:56:38 +0200

It did plot the slice, except with a view-angle along the slice, i.e. looking at the infinitely thin side of the slice. Rotating it in 3D suddenly made it clear.