Yes, I've done this way as well with the same effect. The y-axis elongates either way.
dpb <firstname.lastname@example.org> wrote in message <email@example.com>... > 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 (184.108.40.2063) 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? > > --