Back to the main page.
Bug 508 - ft_singleplotER: box sizes of mask do not adapt with ylim.
Status | CLOSED FIXED |
Reported | 2011-02-25 15:11:00 +0100 |
Modified | 2011-03-03 10:04:31 +0100 |
Product: | FieldTrip |
Component: | plotting |
Version: | unspecified |
Hardware: | Macintosh |
Operating System: | Mac OS |
Importance: | P1 minor |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Jeroen Geuze - 2011-02-25 15:11:19 +0100
In ft_singleplotER, when setting the ylim, the boxes used to mask are not adapted to the given lim. In ft_plot_vector, lines 208-212, the sizes of the mask boxes are set, including its vertical size. Afterwards, in ft_singleplotER, lines 325,326, the xlim and ylims are set, whithout changing the box sizes.
Jeroen Geuze - 2011-02-25 15:18:45 +0100
Suggestion: Change ft_singleplotER, line 321 from: ft_plot_vector(varargin{k-1}.(cfg.xparam), P, 'style', cfg.linestyle{k-1}, 'color', color, 'highlight', M, 'highlightstyle', cfg.maskstyle, 'linewidth', cfg.linewidth); into: ft_plot_vector(varargin{k-1}.(cfg.xparam), P, 'style', cfg.linestyle{k-1}, 'color', color, 'highlight', M, 'highlightstyle', cfg.maskstyle, 'linewidth', cfg.linewidth, 'hlim', cfg.xlim, 'vlim', cfg.ylim);
Jan-Mathijs Schoffelen - 2011-02-28 09:28:40 +0100
Hi Jeroen, I will have a look at it. I am improving the general structure of the code of ft_singleplotER at the moment
Jan-Mathijs Schoffelen - 2011-02-28 10:18:14 +0100
Thanks for suggestion. I included it in the new version of ft_singleplotER. Could you check whether it works? I just committed the new version to the repository: it should be available on google-code soon. If not, just give a yell, I'll forward the code to you. Best, JM