GUI axis, graph label pop up menu settings

1 回表示 (過去 30 日間)
Harshal
Harshal 2012 年 7 月 23 日
回答済み: rohith adulla 2014 年 4 月 22 日
Hello, I am trying to design a GUI in which the user can select predefined data sets and plot the graphs. I succeded in this. Now, I want to add some other options like axis limit settings, xlabel, ylabel etc, wherein the user can give the desired scaling for the graph, and titles for the axes.
How can I implement this function ?
Thanks,
Harshal

回答 (2 件)

Davide Ferraro
Davide Ferraro 2012 年 7 月 23 日
Hi,
the approach is the same you have probably used before. You may use the object callback (you may have edit box to allow the user to insert his text) to control the axes callbacks by using the SET command. In example:
set(ah,'xLim',[0 50])
where ah is the handle to your axes (handles.<tagname> if you are using GUIDE).
An example of using callbacks:

rohith  adulla
rohith adulla 2014 年 4 月 22 日
can you post your code or mail me im working on something presently so that i solve the problem and mail you back the code

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by