topograph created by EEGLAB using ERP

How can I uniform the Y label on the left of the two picture?I made the photos by use of EEGLAB.

3 件のコメント

Kevin Holly
Kevin Holly 2021 年 9 月 26 日
編集済み: Kevin Holly 2021 年 9 月 26 日
I'm not sure what you mean by the Y label.
Are you referring to the text labels above the heads or are you refering to the colorbar on the right?
If you are referring to text labels, you can edit them in a similar manner as I just described in the answer linked below:
You may have to use gcf (get current figure) as opposed to gca (get current axes).
If you want to edit the colorbar's scale. You can edit it with the command
caxis([-1 2])
Please clarify what you need help with and I will gladly assist you.
Luo Mo
Luo Mo 2021 年 9 月 26 日
I'm sorry that I typed the wrong words. What I meant is the colorbar’ scales on the right of the pictures. I'm confused about the command you said and don't know how to operate it. Could you explain it more exactly? Thank you very much.
Luo Mo
Luo Mo 2021 年 9 月 28 日
Could you see my reply?II have been confused about this question for a long time. Thank you very much.

サインインしてコメントする。

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 9 月 28 日

0 投票

For this you could do something like this (except I will use random data and plain imagesc):
I_peaks = rand(3,1);
for i1 = 3:-1:1
Im{i1} = I_peaks(i1)*randn(34,34);
end
for i1 = 3:-1:1
subplot(1,3,i1)
imagesc(Im{i1})
cx(i1,:) = caxis;
end
cx_lims = [-1 1]*max(abs(cx(:)));
for i1 = 1:3
subplot(1,3,i1)
caxis([cx_lims])
end
cbh = colorbar;
This gets the intensity-limits from all subplots, sets the common intensity-limits to +/- of the max absolute intensity, you can/should adjust that to fit your needs.
You should know about tiledlayout and nexttile to use instead of subplot.
HTH

2 件のコメント

Luo Mo
Luo Mo 2021 年 9 月 28 日
Thank you for your answer. But I don't know how to operate it with the code. I am only familiar with the GUI of EEGLAB. Could you explain it more specifically?
Bjorn Gustavsson
Bjorn Gustavsson 2021 年 9 月 29 日
Contact the authors of that toolbox, they should know how to fix this.

サインインしてコメントする。

質問済み:

2021 年 9 月 26 日

コメント済み:

2021 年 9 月 29 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by