Yes, I've done this way as well with the same effect. The y-axis elongates either way.

dpb <none@non.net> wrote in message <kckgrf$ccn$1@speranza.aioe.org>...> On 1/9/2013 1:27 PM, rachael wrote:> > Is there a simple way to fix the axis size so that it stays the same> > size w/ or w/o tick labels?> >> > Currently, when I set my 'yticklabel' to [], my axes2 become larger. I> > would like it to stay the same size w/ or w/o labels.> > I'm running matlab R2012b (8.0.0.783) on OSX Mountain Lion.> ...> > Hmmm....on Winders (XP) if'en I set the same sizes as your example then do a> > set(ax2,'yticklabel',[])> > I see no changes in axis size.> > Do you get any joy if you plot first, _then_ clear the tick labels?> > --