Wednesday, 18 September 2013

Subplots with only ylabel

Subplots with only ylabel

I am plotting some MEG time-series stacked horizontally on top of each
other. Now I want no axis to be showing but I do want to print each
channel number on the left side. So far I've tried this:
figure;
for i=1:10
subplot(10,1,i)
plot(1:5000,PDdata{1,1}.data(:,i)) % data to be plotted
axis off
ylabel(sprintf('%d',i))
end
Giving me

Unfortunately the ylabel is suppressed by the axis off, how can I suppress
all axis options but the ylabel?

No comments:

Post a Comment