common colorbar
Afficher commentaires plus anciens
Dear all,
I made a function f_colorbar.m enabling me to customize a colorbar. However, all of a sudden (& months ago it work without the error and in between I did not change anything at least to my knowledge that could cause this) I get this warning-error:
>> Error in ==> legendcolorbarlayout>layoutColorbar at 829 [width,height]=preferredColorbarSize(origc);
??? Output argument "newpos" (and maybe others) not assigned during call to "C:\Program Files\MATLAB\R2010b\toolbox\matlab\scribe\legendcolorbarlayout.m>layoutColorbar".
Error in ==> legendcolorbarlayout>doInOutLayout at 498 [newpos,corners] = layoutColorbar(location,corners,origc);
Error in ==> legendcolorbarlayout>doLayout at 441 doInOutLayout(par,fig,outlist,corner1,corner2,false);
Error in ==> legendcolorbarlayout>doParentResize at 338 doLayout(ch);
Warning: Error occurred while evaluating listener callback. > In legendcolorbarlayout>reclaimSpace at 1002 In legendcolorbarlayout at 88 In scribe.colorbar.init>changedLocation at 92 In scribe.colorbar.init>changedPos at 116 In f_colorbar at 125 >>
The 125 line says set(hcb,'position',newpos). By the way, on my other computer, having the same matlab (2010b) and the same OS (Win 7 x64) I do not encounter this issue.
Any ideas, ... anything ?
Cheers
Blaz
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!