Scatterhist: width of Boxplot
Mostra commenti meno recenti
Hello,
ist it possible to change the width of the left boxplot in the following example taken from your website? I'd like the width of the left boxplot to be the same as the height boxplot below the scatter plot. Can anyone help?
load fisheriris.mat;
x = meas(:,1);
y = meas(:,2);
h = scatterhist(x,y,'Group',species);
hold on;
clr = get(h(1),'colororder');
boxplot(h(2),x,species,'orientation','horizontal',...
'label',{'','',''},'color',clr);
boxplot(h(3),y,species,'orientation','horizontal',...
'label', {'','',''},'color',clr);
set(h(2:3),'XTickLabel','');
view(h(3),[270,90]); % Rotate the Y plot
axis(h(1),'auto'); % Sync axes
hold off;
Thanks in advance.
Cheers,
Fabian
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!