X, Y label disappeared in app designer after exporting?

4 Ansichten (letzte 30 Tage)
FFT
FFT am 6 Dez. 2022
Kommentiert: FFT am 6 Dez. 2022
Hi,
I made an app that contained figure(s), and a save button that export figure(s).
As I pressed save, the figure(s) were exported. However, the X and Y label of the figure disappeared.
If I click save again, the exported figure doesn't have the label either.
I wonder what causes this issue. Is it possible to fix it?
Thanks!

Antworten (1)

Florian Bidaud
Florian Bidaud am 6 Dez. 2022
Hi,
I guess you should check which callback function is associated with your button, maybe this button plots the figure again without adding the axis.
  1 Kommentar
FFT
FFT am 6 Dez. 2022
Hi,
Thank you for the reply. I found the solution.
Previouly I programmed the label as:
ax.XLabel=UIAxes.XLabel;
ax.YLabel=UIAxes.YLabel;
ax.Title=UIAxes.Title;
After the modification as following, everything worked well.
ylabel(ax,UIAxes.XLabel.String);
xlabel(ax,UIAxes.YLabel.String);
title(ax,UIAxes.Title.String);

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by