Info
This question is closed. Reopen it to edit or answer.
Brushing selects all data
1 view (last 30 days)
Show older comments
I'm trying to get used to the data linking and brushing feature, and it does not seem to be working right for me. I have tried searching extensively, but it looks like this is a rare problem. Anyway, here is my code:
data = 0:10:100;
data = [data; data+15];
data = [data; 120-data(1,:)];
figure;
subplot(1,2,1);
plot(data(1,:), data(2,:), '+', 'XDataSource','data(1,:)','YDataSource','data(2,:)');
subplot(1,2,2);
plot(data(1,:), data(3,:), '+', 'XDataSource','data(1,:)','YDataSource','data(3,:)');
linkdata;
brush;
The problem is that when I go to select any data point, all data points in both plots are instantly highlighted. Does anyone know what the problem could be?
Thanks.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!