band (patch) of varying width?

조회 수: 1 (최근 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 CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by