band (patch) of varying width?

2 次查看(过去 30 天)
Kate
Kate 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