band (patch) of varying width?

2 ビュー (過去 30 日間)
Kate
Kate 2018 年 2 月 17 日
回答済み: Image Analyst 2018 年 2 月 17 日
Hi guys, I have an idea for a visualization and I'm wondering if you all think it would be possible with patch or similar. Essentially I'd like to create a patch which operates like a violin plot, where for example greater uncertainty would be a wider section, and less uncertainty would be narrow. I can't use the existing violin on FEX because I would need this band/patch to be (in this example) 72 long.
I've generated some random uncertainty data, but how would I go about setting the width or filling a patch with it? Some sort of moving window-like function? Patches get messy quick. Any brilliant thoughts welcome :)
u=rand(72, 1)
Thanks a bunch.

回答 (1 件)

Image Analyst
Image Analyst 2018 年 2 月 17 日
It would be possible to create a violin plot but you'd have to come up with the outline yourself, unless there's a built in function for violin that I'm not aware of. Once you have the outlines you can display them with fill() or patch().

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by