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

3 views (last 30 days)
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

Answers (1)

Benjamin Kraus
Benjamin Kraus on 17 Nov 2021
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.

Categories

Find more on Weather and Atmospheric Science in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!