Vertical bars in scatter plot
古いコメントを表示
Hi everyone,
I have a scatterplot with points on 12 horizontal lines. Sometimes, the points synchronize and in this case, I want to put a semi-transparant black bar in the background, spanning the period of overlap.
The data for my scatterplot is in a matrix with [y,x]. The data for the synchronization is in a matrix with [x,duration of the synchronized period].
I was wondering if, and how, it would be possible to create a grey bar in the background of the scatterplot. I've added an example of the scatterplot without bar below, and have in one of the synchronized events made a grey bar as I mean to have it in powerpoint.
This is the code for my scatter plot:
figure();
scatter(peaktrains(:,2)./1000000,peaktrains(:,1),"|",'MarkerEdgeColor','#097F97')

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!