The boxplot labels disappeared after I set the Ytick

6 ビュー (過去 30 日間)
Hao Peng
Hao Peng 2018 年 4 月 12 日
回答済み: Jonas 2021 年 4 月 18 日
When I use the boxplot function and set multiple grouping variables, it works fine. But when I have set the YTick after the boxplot function, the labels are disappeared. If the number of boxplot is only 1 in a figure it won't happen, but if the number of boxplot is like 3*4, it happens every time. This problem won' happen on 2017a, but 2017b and 2018a.

回答 (1 件)

Jonas
Jonas 2021 年 4 月 18 日
i had a similar problem when I generated a boxplot with logarithmic y-axis in Matlab 2021b. Originally I wanted to set the y-ticks using 'ax=gca' after the creation of the boxplot and then setting ax.YTick=10.^(-50:5:0).
The problem did not appear if i assigned the y-ticks using the function yticks()

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by