Mario LIPCIK
Mario LIPCIK

Reputation: 477

Matlab - GUI change axes size

How do I change sizes of axes (min - max limits).

In my GUI I have used "Axes" object and I want to set manual size of X and Y axes through "Edit text" field.

This is picture of my GUI:

enter image description here

Upvotes: 2

Views: 4931

Answers (1)

slayton
slayton

Reputation: 20319

Set the callback on your uielement to execute a function that contains code like this:

set(axesHandle, 'Xlim', newXLim, 'YLim', newYLim);

For more information see the official docs: http://www.mathworks.com/help/matlab/creating_guis/examples-programming-gui-components.html?s_tid=doc_12b

Upvotes: 4

Related Questions