<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Erin,<br><br></div>I don't use the multiplot functions much, so my solution is clunky and there may be others on the list with a better way to do this. But just in case, here's how I do it:<br><br></div>Rather than using multiplot, I make each plot individually, and use the subplot() command to arrange multiple plots into a figure. Within each subplot, I just use some custom code to draw the ticks. For example:<br><br></div>tickspots = [-200:200:1000]; % one tick every 200 ms, from -200 to 1000 ms<br></div><div>tickheight = [-.5 .5]; % how high and low the ticks will go<br></div><div><br></div>for tickspots = tickspot % iterate through tick spots<br></div>plot( [tickspot tickspot], tickheight, 'k' ); % plot each tick as a black line<br></div>end;<br><br><br></div>Best,<br></div>Steve<br><div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><div><br><br>---<br></div>Stephen Politzer-Ahles<br>University of Oxford<br>Language and Brain Lab, Faculty of Linguistics, Phonetics & Philology<br><a href="http://users.ox.ac.uk/~cpgl0080/" target="_blank">http://users.ox.ac.uk/~cpgl0080/</a></span></div></div></div></div></div>
<br><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 26 Nov 2015 12:48:25 +0000<br>
From: Erin White <<a href="mailto:erin.white@sickkids.ca">erin.white@sickkids.ca</a>><br>
To: "<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>" <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: [FieldTrip] Adding tick marks to the X and Y axes in<br>
        multiplotER and multiplotTFR images<br>
Message-ID:<br>
        <<a href="mailto:0D4EE8880DEE3047BEC905C0EC463F8C2769D79D@SKMBXX03.sickkids.ca">0D4EE8880DEE3047BEC905C0EC463F8C2769D79D@SKMBXX03.sickkids.ca</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
I'm new at programming and was wondering if someone could help with something that I'm sure is simple.<br>
I'd like to add tick marks to my multiplotER and multiplotTFR figures so that the timing and amplitude (for multiplotER) and timing and frequency (for multiplotTFR) scales are presented clearly. For example, I'd like a tick mark on my X axes every 200 ms, and on the y axes, every 2 mV for ER images and every 5 Hz for TFR images.<br>
<br>
Could anyone suggest what I should add to my code to show this?<br>
<br>
Thanks very much!<br>
<br>
Erin<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
----------------------------------------------------<br>
Erin White, PhD<br>
Post-Doctoral Research Fellow<br>
Neurosciences and Mental Health<br>
The Hospital for Sick Children<br>
555 University Avenue<br>
Toronto, Ontario<br>
Canada<br>
Telephone: <a href="tel:%28647%29834-7813" value="+16478347813">(647)834-7813</a><br>
<br>
________________________________<br>
<br>
This e-mail may contain confidential, personal and/or health information(information which may be subject to legal restrictions on use, retention and/or disclosure) for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151126/f0640a71/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151126/f0640a71/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<br>
End of fieldtrip Digest, Vol 60, Issue 23<br>
*****************************************<br>
</blockquote></div></div></div></div></div></div></div></div></div></div></div></div></div>