Stem plot with minimal spaces between lines
古いコメントを表示
Hello,
I'm using stem plot to show my data here is my code. However, my question is there are spaces between two stem lines, I wanted to fill the space with same stem lines, can someone guide me regarding this. e.g., stem plots 5 and 5 but I really need to insert some more line between these vaules to fill the space and the total array values remain 24 same. Thanks in advace.
t=[5 5 5 5 5 5 6 2 2 2 2 4 4 4 4 4 4 4 1 1 6 6 6 6];
stem(t,'-s','MarkerFaceColor',[0 1 0],'LineWidth',1.5);
hold on
4 件のコメント
Adam Danz
2019 年 12 月 10 日
Hmmm, it sounds like you want to use fill to create a solid patch defined by your (x,y) coordinates. How does your goal differ from that?
shane watson
2019 年 12 月 10 日
Adam Danz
2019 年 12 月 11 日
Done. Let me know if there are any other loose ends.
shane watson
2019 年 12 月 11 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
