how to get details (x,y axis data) from probplot?

7 ビュー (過去 30 日間)
Nan Shen
Nan Shen 2013 年 8 月 27 日
We use probplot and qqplot to plot differece between normal and data distribution. Is there a way to get the data of the plot from it? Thank you!

採用された回答

Walter Roberson
Walter Roberson 2013 年 8 月 27 日
If you want the display limits, get() the XLim and YLim properties from the axes containing the plots. If you want coordinate information, findobj() the "line" or (for scattergrams with sufficiently many points) "patch" objects and get() their XData and YData properties.
For example,
xdhandles = findobj(gcf, '-prop', 'XData');
xydata = cell(length(xdhandles, 2);
for K = 1 : length(xdhandles)
h = xdhandles(K);
xydata{K, 1} = get(h, 'XData');
xydata{K, 2} = get(h, 'YData');
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by