The Axes Tag keeps on deleting....

조회 수: 5 (최근 30일)
Nimrodb
Nimrodb 2013년 2월 19일
Every time I open the project - the Axes Tag is empty. That causes the background picture I it to not appear.
Any idea?

답변 (2개)

Jan
Jan 2013년 2월 20일
편집: Jan 2013년 2월 20일
As reply to your comment to Image Analysts answer:
You can fix this by the shown method to set 'NextPlot' to 'add':
h = axes('tag', 'theTag', 'NextPlot', 'add');
Then new object added by so called high-level graphic routines do not clear formerly created objects and do not reset some properties of the parent object anymore. I create all AXES objects with this property and whenever I want an already existing object to be deleted, I do this explicitly. The less I let Matlab guess what I want, the less chances Matlab has to make mistakes.
I follow the same principle for low-level functions also: The high-level function plot() creates a line object. calling line directly is faster, has less side-effects, but it is less convenient e.g. for setting markers. But even then specifying the axes handle as 'Parent' property has advantages instead of relying, that the wanted axes is the current object: When a TIMER callback activates another axes, the results look very confusing.
  댓글 수: 7
Nimrodb
Nimrodb 2013년 2월 24일
IA: I did - no answer :/
But thanks.
As long as I do not turn on the GUIDE - all is good. The problem happens when I turn the GUIDE on - then the Tag is gone.
Image Analyst
Image Analyst 2013년 2월 24일
It should answer - they have an automated/computerized phone answering system. Try calling them during normal business hours.

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


Image Analyst
Image Analyst 2013년 2월 19일
How are you opening "the project"? In GUIDE? And then you double click on an axes to bring up the property inspector and the tag property is empty? That seems weird or impossible.
  댓글 수: 6
Nimrodb
Nimrodb 2013년 2월 20일
Guys, it looks like you also encountered my problem.
Jan, I'm not sure if you saw this behavior or not (not sure what this code is for) - but your questions are valid and that is the question for the answer I'm looking for - Why should this happen? End more - how to fix this?
Image Analyst
Image Analyst 2013년 2월 20일
You could probably fix it using GUIDE. I use GUIDE and that never happens to me.

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

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by