Skip to content

Newtimef: add parameter limit for ERSP and ITC difference plot #76

@nucleuscub

Description

@nucleuscub
Member

Description

Dear Soyoung,

Do you mean that the scale for the difference ERSP cannot be tuned in the parameters? The 'erspmax' and 'itcmax' parameters do set the correct limits for the plots of condition 1 and condition 2. There is no such parameter yet for the difference plot. I have added a enhancement querry to Bugzilla and we will try to address that problem as soon as possible. In the meantime, you may modify your own function and set the limit manually, line 1519 to 1521 (plottimef call) by modifying the g.erspmax (line 1519) and g.itcmax (line 1520) values.

Thanks for the feedback,

Arno

Soyoung Kwon wrote:

While using the function of newtimef(), I need a help.
Since I desire to display ERSP & ITC of individual datasets and change of datasets in the same scale, I defined the erspmax and itcmax in fixed number.


[ersp,itc,powbase,times,freqs,erspboot,itcboot] = newtimef({ALLEEG(1).data(chan,:,:) ALLEEG(2).data(chan,:,:)}, ...
EEG.pnts, [EEG.xmin EEG.xmax]*1000, EEG.srate, [0], 'padratio', 4, 'alpha', 0.05 , 'erspmax', [4], 'itcmax', [0.6], 'erplim', [-6 6])

Steps to Reproduce

See line 1022 in newtimef:
g.erspmax = []; g.itcmax = []; % auto scale inserted for diff

Expected behavior:

Limits should be applied to plot

EEGLAB Version:

2019.1

OS version [Any version]
Matlab version [Any version]
EEGLAB version [Any version]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @arnodelorme@nucleuscub

      Issue actions

        Newtimef: add parameter limit for ERSP and ITC difference plot · Issue #76 · sccn/eeglab