Back to the main page.

Bug 657 - multiplotTFR displays incorrect x-axis values

Status CLOSED FIXED
Reported 2011-05-11 20:23:00 +0200
Modified 2011-07-13 14:46:44 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: Macintosh
Operating System: Mac OS
Importance: P1 minor
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Eliezer Kanal - 2011-05-11 20:23:35 +0200

Created attachment 47 plot with incorrect xlim value At the beginning of the ft_multiplotTFR function (lines 315-328) the xmin and xmax values are set and then immediately overwritten with index values. They will always be overwritten due to xparam begin set in line 172. These index values are then later used as the actual xmin and xmax values on line 513. See plot for example of this; the xlim should not be [1 21], it should be [-0.5 0.5]. The fix is simple: change line 513 to the following: comment = sprintf('%0s\nxlim=[%.3g %.3g]', comment, data.(cfg.xparam)(xmin), data.(cfg.xparam)(xmax));


Jan-Mathijs Schoffelen - 2011-05-20 10:07:50 +0200

Hi Eli, Thanks for reporting this. I fixed it in the release version


Jan-Mathijs Schoffelen - 2011-05-20 10:17:58 +0200

Hi Eli, Thanks for reporting this. I fixed it in the release version


Robert Oostenveld - 2011-07-13 14:46:44 +0200

changed the status for a whole bunch of resolved bugs to CLOSED