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

2 vues (au cours des 30 derniers jours)
Andre Röthling
Andre Röthling le 18 Oct 2021
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

Réponses (1)

Benjamin Kraus
Benjamin Kraus le 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.

Catégories

En savoir plus sur Weather and Atmospheric Science dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by