Too Many Labels on the X axis in Boxplot

1 view (last 30 days)
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('Доходность (раз)');
  1 Comment
Andrei Makarskiy
Andrei Makarskiy on 8 Nov 2015
xticklabel_rotate([],90,[],'Fontsize',5); helps a bit, but still it's a nightmerish solution

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!