Too Many Labels on the X axis in Boxplot
1 view (last 30 days)
Show older comments
Hello, everyone. The following code makes a boxlpot with a cluttered x axes. Is there a way to display less strikes from the optionsChange table? The commented lines would help either since the strikes are offset very much to the right.
figure;
% boxplot(optionsChange.Bid_Ask_Change(1:10:end), optionsChange.Strike(1:10:end), 'labelverbosity','minor');
boxplot(optionsChange.Bid_Ask_Change, optionsChange.Strike, 'labelverbosity','minor');
% boxplot(optionsChange.Bid_Ask_Change, linspace(min(optionsChange.Strike), max(optionsChange.Strike), 30), ...
% 'labels', linspace(min(optionsChange.Strike), max(optionsChange.Strike), 30));
% set(gca,'XTick',linspace(min(optionsChange.Strike), max(optionsChange.Strike), 30));
% set(gca,'XTickLabel',linspace(min(optionsChange.Strike), max(optionsChange.Strike), 30));
title(sprintf('%s Доходность %s Calls за %g дней до события %s по Страйкам', Ticker, optionDirection, start_end_time_days, datestr(endDate)));
xlabel('Cтрайки');
ylabel('Доходность (раз)');
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!