Too Many Labels on the X axis in Boxplot
2 ビュー (過去 30 日間)
古いコメントを表示
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('Доходность (раз)');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151526/image.png)
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!