How can I plot earth_sphere(varargin) correctly in an Matlab app tab

3 ビュー (過去 30 日間)
Andre Röthling
Andre Röthling 2021 年 10 月 18 日
回答済み: Benjamin Kraus 2021 年 11 月 17 日
How can I plot earth_sphere(varargin) in an Matlab app tab. I dont know how to include it to my Code. I tried to access an UIAxes (UIAxes5) Object i created bevor on that tab, but it changes also my UIAxes4 and the plot in UIAxes5 is just 2D.
methods (Access = private)
function results = func(app)
earth_sphere(app.UIAxes5);
end
end

回答 (1 件)

Benjamin Kraus
Benjamin Kraus 2021 年 11 月 17 日
Two things you can try:
  1. Set the NextPlot property on the UIAxes to 'replace' before calling earth_sphere (app.UIAxes5 = 'replace').
  2. Call view(app.UIAxes5,3) after calling earth_sphere.

カテゴリ

Help Center および File ExchangeWeather and Atmospheric Science についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by