- The words default, factory, and remove are reserved words that will not appear in text when quoted as a normal characters. To display any of these words individually, precede them with a backslash, such as '\default' or '\remove'.
- If you specify this property as a categorical array, MATLAB® uses the values in the array, not the categories.
Why there is no text shown, displaying 'default', 'remove' or 'factory' in text and legend?
조회 수: 3 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2019년 5월 17일
답변: MathWorks Support Team
2019년 5월 17일
Why there is no text shown, displaying 'default' in text and legend?
I would like to plot this here and the text 'default' is missing:
plot(1,1);
legend('default');
채택된 답변
MathWorks Support Team
2019년 5월 17일
This is not a bug and documented behavior.
Please escape 'default' with the following character '\' so it looks like:
\default
If this is not working in R2019a, do the following:
\\default
We will improve the documentation on this in the future.
The behavior is the same for 'factory' and 'remove'.
Here you can find the info in the doc:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!