The boxplot labels disappeared after I set the Ytick

6 vues (au cours des 30 derniers jours)
Hao Peng
Hao Peng le 12 Avr 2018
Réponse apportée : Jonas le 18 Avr 2021
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.

Réponses (1)

Jonas
Jonas le 18 Avr 2021
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()

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by