Back to the main page.

Bug 2960 - adding ft_plot_patch.m

Status ASSIGNED
Reported 2015-09-10 20:06:00 +0200
Modified 2015-09-25 13:51:22 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: All
Operating System: All
Importance: P5 enhancement
Assigned to: Roemer van der Meij
URL:
Tags:
Depends on:
Blocks:
See also:

Roemer van der Meij - 2015-09-10 20:06:06 +0200

I created an ft_plot_patch, similar to ft_plot_vector (its base). It's currently relatively simple, but allows for plotting SEMS etc in the local axis systems that we use. It can also be used as a replacement for ft_plot_box. I remember vaguely we at some point decided not to created such a function, but I forgot why. Anybody remember? Wasn't a lot of work, feel free to shoot it down.


Robert Oostenveld - 2015-09-25 13:51:22 +0200

I don't recall arguments for not making the function, except that (possibly) at that time I did not see the need for it. I do see the need for it now, although for one possible use case (confidence intervals) there is possible some intersection with the highlighting option in ft_plot_vector (and ft_plot_matrix). It would be good to further integrate it with the other plotting tools, e.g. have ft_plot_box be a simple call to ft_plot_patch. We could also add the 'confidence' and 'confidencestyle' options to ft_plot_vector to allow specification of a 2xN matrix with the lower and upper confidence intervals (c.f. plotting the mean and SEM).