[Eeglablist] Adding ticks to the main plot
James Desjardins
jdesjardins at brocku.ca
Wed May 25 09:50:03 PDT 2011
Hi Mary-Jane,
To edit the axes of all the channel ERPs in the main figure produced
by pop_chanplot() you need to access the handles of the children axes.
First create a vector containing the handles to the children axes in
the current main ERP figure as follows:
h_child=get(gcf,'Children');
You can then get a list of the axis properties for the first child as follows:
get(h_child(1))
To change properties in children axes you can run a loop from the
command line that goes through each handle and sets properties (note
that the final child is the main background so you probably won't need
to make any changes to that one). For example copying the following to
the command line will go through all of the child handles (except the
last one) and change the property "Visible" to "on", "Box" to "off"
and "Color" to "none".
for i=1:length(h_child)-1;
set(h_child(i),'Visible','on', ...
'Box', 'off', ...
'Color','none');
end
James Desjardins
Technician, MA Student
Department of Psychology, Behavioural Neuroscience
Cognitive and Affective Neuroscience Lab
Brock University
500 Glenridge Ave.
St. Catharines, ON, Canada
L2S 3A1
905-688-5550 x4676
Quoting "Budd, Mary-Jane" <mbudd at essex.ac.uk>:
> Thanks for your reply.
> I am using the pop_chanplot() function within a study design.
>
> All your instructions work for the subplots ie when you click on an
> individual ERP plot within the main plot. However, I am looking to show tick
> marks on the main plot picture.
>
> Mary-Jane
>
>
> On 21/05/2011 04:24, "James Desjardins" <jdesjardins at brocku.ca> wrote:
>
>> Hi Mary-Jane,
>>
>> I will give more detailed information about the specific plot you are
>> making if you include the name of the eeglab function that created the
>> figure (this will be displayed in the title bar caption of the figure
>> window followed by empty brackets).
>>
>> Generally, Matlab figure properties can be adjusted using the "Edit"
>> menu of the figure window. Use "Edit > Figure Properties..." to open
>> the Property Editor within the figure window. Then click on your
>> figure axis (anywhere in the white rectangle behind your waveforms) to
>> display the Axes properties. There will then be tabs for each of the
>> axes, select the "X Axis" tab and then click the "Ticks..." button to
>> manually adjust your axis ticks.
>>
>> Further, click the "More Properties..." button to display an editable
>> list of all the axes properties. The property "XTick" controls which
>> ticks are displayed along the X axis. If you wanted to only display
>> ticks starting at ms 100, every 10ms, until 200ms you would simply
>> list those values for this property. Similarly this can be achieved by
>> selecting the figure axis then typing the following in the matlab
>> command line:
>>
>> set(gca,'XTick',[100:10:200])
>>
>> You can find more information here:
>>
>> http://www.mathworks.com/help/techdoc/creating_plots/f6-7929.html
>>
>> I hope this helps..
>>
>> James Desjardins
>> Technician, MA Student
>> Department of Psychology, Behavioural Neuroscience
>> Cognitive and Affective Neuroscience Lab
>> Brock University
>> 500 Glenridge Ave.
>> St. Catharines, ON, Canada
>> L2S 3A1
>> 905-688-5550 x4676
>>
>>
>> Quoting "Budd, Mary-Jane" <mbudd at essex.ac.uk>:
>>
>>> I am new to eeglab and Matlab and I was wondering if you could help. I have
>>> created an ERP plot using a study of 60 electrodes and I would like to show
>>> the ms ticks on the x axis on the main plot ie when all electrodes are
>>> shown. Can anyone tell me how to do this please?
>>>
>>> Mary-Jane
>>>
>>> --
>>> Dr Mary-Jane Budd
>>> Senior Research Officer
>>> Department of Language and Linguistics
>>> University of Essex
>>> Wivenhoe Park
>>> Colchester CO4 3SQ
>>> UK
>>>
>>> Room 4.344
>>>
>>>
>>> _______________________________________________
>>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
>>> For digest mode, send an email with the subject "set digest mime" to
>>> eeglablist-request at sccn.ucsd.edu
>>>
>>
>>
>>
>>
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>
> --
> Dr Mary-Jane Budd
> Senior Research Officer
> Department of Language and Linguistics
> University of Essex
> Wivenhoe Park
> Colchester CO4 3SQ
> UK
>
> Room 4.344
>
>
More information about the eeglablist
mailing list