Are your units of the figure in pixels?
Also, rather than having this in the button callback, it should be in the opening function so it happens automatically.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!