How can I reposition the colorbar to not overlap my x-axis label?
Mostra commenti meno recenti
When I create a plot with a horizontal colorbar my x-axis label is covered by the colorbar itself so that it is no longer visible. How can I reposition my colorbar so that the label is uncovered.
plot(1:10);
xlabel('\Omega_m');
ylabel('H_0');
hbar = colorbar('horiz');
xlabel(hbar,'\Omega_c h^2');
Risposta accettata
Più risposte (1)
Mr M.
il 24 Lug 2018
5 voti
Error using matlab.graphics.illustration.ColorBar/set There is no activepositionproperty property on the ColorBar class.
set(hbar,'location','manual','activepositionproperty','outerposition')
Categorie
Scopri di più su Annotations 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!