X, Y label disappeared in app designer after exporting?

조회 수: 4 (최근 30일)
FFT
FFT 2022년 12월 6일
댓글: FFT 2022년 12월 6일
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!

답변 (1개)

Florian Bidaud
Florian Bidaud 2022년 12월 6일
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
FFT
FFT 2022년 12월 6일
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);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by