[GUI] How do change the min and max values of a plot.
3 ビュー (過去 30 日間)
古いコメントを表示
I want to change the min and max values of a plot in GUI.
And the following code doesn't work:
axis(handles.axes1,[0,100,0,1]);
This is because then when I plot a scatter after
scatter(handles.axes1, x, y);
It doesn't keep the same dimensions on the axes.
I then tried hold(handles.axes1);
between the two bits of code and it still doesn't work... confused.
What am I doing wrong?
0 件のコメント
回答 (1 件)
Image Analyst
2012 年 12 月 19 日
Use the xlim() and ylim() functions.
7 件のコメント
Jan
2012 年 12 月 19 日
@Shane: Besides Walter's suggestion, what about calling XLIM after all plots have been made?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!