Passing figure data from fcn to plot in GUI

Hello, I wrote a function, "gcvplots," that creates different plots whose contents depend on the nature of the input to gcvplots. I would like to pass the plot and axis information to a GUI, which calls gcvplots, so that each figure is plotted on specified axes in the GUI. That is, gcvplots should contain something along the lines of
h = plot(x,y);
h_axes = axes('XLim' [xmin xmax],...);
(I know this syntax is wrong, because "h" just becomes a double, but I hope it gets the idea across)
and then return "h" and "h_axes" in the GUI so that they can be plotted on an axes object. Any help or advice would be much appreciated!

 採用された回答

Paulo Silva
Paulo Silva 2011 年 7 月 5 日

0 投票

Why doesn't gcvplots return the data necessary to do the plots to the GUI and the code to plot goes inside the GUI?
function Data=gcvplots(...
Where Data should be a structure or cell
it would be a lot easier with gcvplots code inside the GUI

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

P
P
2011 年 7 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by