stackedplot without yticklabels?

I noticed I can't apply the yticklabel() function to a stackedplot. Isn't there a way to simply clear the yticklabels so that only the display names (ylabels) are printed, but not numbers associated with the y-ticks?

回答 (2 件)

Adam Danz
Adam Danz 2020 年 11 月 19 日

1 投票

See this answer for an undocumented method of change the ytick values in stackedplot.
To clear the ticks, you'll change the last line to,
set(s.Axes, 'YTick', [])
Joe Vinciguerra
Joe Vinciguerra 2019 年 11 月 13 日

0 投票

No. stackedplot is missing a lot of common property controls. Hopefully they continue to develop this function in future releases.

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

リリース

R2019b

質問済み:

2019 年 11 月 12 日

回答済み:

2020 年 11 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by