crosshairs or just vertical line across linked axis plots
古いコメントを表示
What I have are plots that are linked by the linkaxes() function. I would like to have a vertical line that spans all of the plots so that I can compare the peaks and valleys interactively between plots.
採用された回答
その他の回答 (3 件)
Jiro Doke
2011 年 2 月 22 日
1 投票
2 件のコメント
Mark Dragovan
2011 年 2 月 22 日
arysteasz
2018 年 1 月 27 日
How to get matrix index from this code?
Patrick Kalita
2011 年 2 月 22 日
f = figure;
subplot(2,1,1)
plot(rand(5))
subplot(2,1,2);
plot(magic(5))
set(f, 'Pointer', 'fullcrosshair')
4 件のコメント
Walter Roberson
2011 年 2 月 22 日
That doesn't span multiple plots.
Patrick Kalita
2011 年 2 月 22 日
I'm not sure what you mean. As long as the axes are arranged vertically in a figure (which isn't too unusual) it seems to do what was asked.
Walter Roberson
2011 年 2 月 22 日
I see what you mean, Patrick. On the other hand, it would cover the entire figure rather than just the plots.
Jiro Doke
2011 年 2 月 22 日
It seems that this solution is the easiest and cleanest when the axes are stacked vertically. I'm not entirely sure what the OP meant when he said "compare the peaks and valleys interactively between plots". Is it just visually line things up, or does he want more information like actual numbers.
claudio
2014 年 5 月 26 日
0 投票
Is it possible to display the values in a window (like in datacursormode, "window inside figure" display style)??
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!