Clear Filters
Clear Filters

how to resize axes within a GUI

2 views (last 30 days)
F Z
F Z on 14 Aug 2013
Hello,
I am not used to work with Gui interfaces and i am having some troubles to define the axes limits.
I want plot 2 points in the GUI. Lets say A(-2;10) and B(5;5) but as i can't change the axes limits i can't display these 2 points.
On the other hand, is it possible to change the X axis limit to [-100,100], the same for the Y one but centered in (0,0)?
Thank you in advance for your help,
Fatzo

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 14 Aug 2013
Edited: Azzi Abdelmalek on 14 Aug 2013
set(handles.axes1,'xlim',[-100 100],'ylim',[-100 100])
  1 Comment
F Z
F Z on 16 Aug 2013
Hello,
Thank you a lot for your support. But still have the problem of recentring axis at the origin (0,0). Any ideas please?
tank you in advance for your help,
Fatzo

Sign in to comment.

More Answers (0)

Categories

Find more on Visual Exploration in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!