フィルターのクリア

Adjust the vertical and horizontal alignment of the label of xline function

28 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2021 年 8 月 7 日
コメント済み: alpedhuez 2021 年 8 月 9 日
xline function is nice.
There is an example of "Adjust the vertical and horizontal alignment of the label" at https://www.mathworks.com/help/matlab/ref/xline.html
Following an example in the online document, I have created an example. Although I can draw the plot, the label is not aligned in the middle as it should be.
I have attached a screenshot. What is wrong?

採用された回答

Dave B
Dave B 2021 年 8 月 7 日
編集済み: Dave B 2021 年 8 月 7 日
This would be much easier to diagnose if you put your code in the question instead of a picture, but I belive you used a number 1 for defining x1, and a letter L for setting the property.
x1=xline(...)
and
xl.LabelVerticalAlignment
make sure you use the same variable name and it should work!
(suspicion confirmed by zooming in):
  3 件のコメント
Dave B
Dave B 2021 年 8 月 7 日
No problem, I think anyone who's written some code has run into an l(L) vs 1(one) vs I(i) issue before!
alpedhuez
alpedhuez 2021 年 8 月 9 日
Thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by