Plotting multiple patch objects in App Designer

I am having issues with plotting multiple patch objects on a plot in App Designer. I know there is a 'NextPlot' property for UIAxes, but it doesn't work when plotting patch. Is there a way to plot multiple patches in App Designer?

6 件のコメント

Adam
Adam 2017 年 6 月 1 日
編集済み: Adam 2017 年 6 月 1 日
Does the hold command not work in App designer? I haven't used it much, but I thought I had used hold, though not for patches.
Krithi Gopalan
Krithi Gopalan 2017 年 6 月 1 日
Hold does work, but only for multiple patches. I want to graph a normal plot as well as a patch, and I cannot figure out how to put the two together.
Adam
Adam 2017 年 6 月 1 日
What happens when you try to do this then? And in what order are you doing it?
Krithi Gopalan
Krithi Gopalan 2017 年 6 月 1 日
編集済み: Krithi Gopalan 2017 年 6 月 1 日
This is a screenshot of what happens when I click "Plot Mean Data". I want those error bar patches to show up on the main GUI axes rather than in another figure.
Adam
Adam 2017 年 6 月 1 日
Looking at the help patch is not supported at all in App Designer at the moment so how are you even getting a single patch?
Krithi Gopalan
Krithi Gopalan 2017 年 6 月 1 日
I am using a function called shadedErrorBar created by someone and posted to the File Exchange forum. It's based on the patch object.

サインインしてコメントする。

 採用された回答

Chris Portal
Chris Portal 2017 年 6 月 2 日

0 投票

Krithi, there are a few things going on here...
  1. NextPlot is not contributing to the problem here. What you're running into is UIAxes cannot be GCA, which is why you aren't getting the results you expect.
  2. The other issue is the File Exchange chart you're using doesn’t support an axes parent handle. Instead it has a ‘lineprops’ input, so if you pass in a ‘parent’ option there, it will only affect the lines, not the axes.
  3. If the FX chart did support an axes parent option, in R2017a, the PATCH command would issue an error because it isn't supported by UIAxes (at the moment).
PATCH support in UIAxes is right around the corner, but even with that support in place, you'll still run into an issue unless a parent input is also supported in the shadedErrorBar chart.
Hope this helps!

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by