Matlab plot disappears after editing X and Y limits

4 vues (au cours des 30 derniers jours)
Adeyemi Adegbenjo
Adeyemi Adegbenjo le 6 Fév 2024
Réponse apportée : Taylor le 6 Fév 2024
Plotted matlab spectra data plot (transmittance against wave bands). My wave bands were in band numbers and trying to change to wavelength real values in nm, i neeeded to edit Y axis and X axis limits and my plot disappears. How can i display my plot back with the new modified X and Y axis labels. I am using Matlab release R2023b.

Réponse acceptée

Taylor
Taylor le 6 Fév 2024
Difficult to say without seeing the actual code, but you can try something like this:
ax = gca;
ax.XLim = [1 10]; % Use your values here
ax.YLim = [1 10]; % Use your values here
ax.XLabel = "Your Label Here";
ax.YLabel = "Your Label Here";

Plus de réponses (0)

Catégories

En savoir plus sur Labels and Styling dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by