Back to the main page.

Bug 3300 - Plot negativity upwards

Reported 2017-05-30 10:18:00 +0200
Modified 2019-08-10 12:37:19 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 enhancement
Assigned to:
Depends on:
See also:

Mariella Paul - 2017-05-30 10:18:48 +0200

Created attachment 841 mat file containing a data structure (data), a cfg structure (cfg), and a layout structure (lay) Dear fieldtrippers, I would like to be able to plot negativity upwards using e.g. ft_multiplotER and ft_singleplotER. I attached some data as an example. Here is a short script that plots this data: load feature_request.mat ft_multiplotER(cfg, data); It would be great if I could either specify an option for negativity upwards or if I could specify e.g. cfg.ylim = [8 -8] (which now results in only lines being plotted). Thank you so much for your help, Mariella

Jan-Mathijs Schoffelen - 2017-11-09 20:06:14 +0100

What about multiplying your data with -1, prior to plotting it?

Mariella Paul - 2017-11-16 12:03:42 +0100

(In reply to Jan-Mathijs Schoffelen from comment #1) Dear Jan-Mathijs, thank you for your reply! Multiplying it with -1 works, but I find changing the data a little risky, in case one loses track of whether or not the data is flipped at a given point. Best, Mariella

Jan-Mathijs Schoffelen - 2017-11-16 12:05:42 +0100

You can use ft_math to keep track of this.

Jan-Mathijs Schoffelen - 2018-01-29 10:49:28 +0100


Robert Oostenveld - 2019-08-10 12:37:19 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on