Subplot is a convenience function that wraps around the lower level axes function. It simplifies the layout process. As a higher level function, it does some bookkeeping for you. This debugging session shows that the helpful things it does can be confusing if you are not expecting them.
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.