フィルターのクリア

Axis labels cover the figure

2 ビュー (過去 30 日間)
Aäron Penders
Aäron Penders 2021 年 2 月 9 日
コメント済み: Star Strider 2021 年 2 月 10 日
Hi there,
While making my figure, I noticed how the Yaxis labels cover part of the figure. How do I fix this?
f1=figure;
p = plot(xArray,normalizedSum);
p.LineWidth = 1.2;
p.Color = [175 0 50]./255;
set(gca,...
'FontSize', 12,...
'XDir','reverse',...
'YMinorTick','on',...
'YScale','log',...
'YTickLabelMode', 'manual',...
'YGrid','on',...
'YMinorGrid','on',...
'YMinorTick','on',...
'YTick',[1 10 100 200 255],...
'YTickLabel',{'1','10','100','200','255'});
xlim([0 12]);
ylim([0 255]);
ylabel('Logarithmic pixel intensity');
xlabel(['Distance (' char(197) ')']);
Thanks in advance.

採用された回答

Star Strider
Star Strider 2021 年 2 月 9 日
This is a bug that has since been fixed. See semilogx() with reverse X Axis changes Y Labels position for a work-around, or update your version to the latest update (that may have fixed it), or upgrade to the current version/release or a version after R2018b (that may have been the last version with this bug).
  4 件のコメント
Aäron Penders
Aäron Penders 2021 年 2 月 10 日
Works perfectly in R2020b. Thanks @Star Strider.
Star Strider
Star Strider 2021 年 2 月 10 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by