フィルターのクリア

GUI on a scatter plot

2 ビュー (過去 30 日間)
Amirali Kamalian
Amirali Kamalian 2019 年 5 月 23 日
コメント済み: Amirali Kamalian 2019 年 5 月 23 日
The output window contains 4 scatter plots (using subplot) which illustrates the relation between 5 vectors. I would like to add the following two features to this output:
1) When I click on one point within any graph i.e. (X1,Y1), the color of this point on that graph would change.
2) When I click on one point within any graph i.e. (X1,Y1), the color of the corresponding point on the other graphs would also change.
% vector A = X-Position;
% vector B = Y-Position;
% vector C = Temperature;
% vector D = Velocity;
% vector E = Density;
% subplot(1) = scatter(A,B)
% subplot(2) = scatter(C,D)
% subplot(3) = scatter(A,D)
% subplot(4) = scatter(B,E)
I hope this is clear. Any ideas?
Thanks in advance.

回答 (1 件)

Jan
Jan 2019 年 5 月 23 日
編集済み: Jan 2019 年 5 月 23 日
Then you have to modify the callback such that the corresponding points in the other axes objects are highlighted also. I'm not sure, how selecting a point in the X-Position/Velocity diagram allows to select a "corresponding" point in the Y-Position/Density diagram. You have to decide this, before we can suggest some Matlab code as a solution.
  1 件のコメント
Amirali Kamalian
Amirali Kamalian 2019 年 5 月 23 日
Thank you for your answer. What i mean is by choosing point,
(X(:,i),Y(:,i))
i-th element of other vectors would also be highlighted in other diagrams

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by