While switching from 2013 to 2014, I got error in cbfreeze.m which states Reference to non-existent field 'XLim'. How can this be solved?

댓글 수: 2

Christopher Stokes
Christopher Stokes 2020년 6월 8일
I have the same issue as reported above, does anyone have a solution for this yet?
Thodoris Karpouzoglou
Thodoris Karpouzoglou 2021년 11월 26일
same problem here with Matlab 2019b

댓글을 달려면 로그인하십시오.

답변 (1개)

DGM
DGM 2021년 11월 26일
편집: DGM 2021년 11월 26일

0 개 추천

Colorbar objects are fundamentally different than they were prior to R2014b. They used to essentially be axes objects. Those properties no longer apply, so code that treats them as if they're still axes objects will need to be updated to conditionally handle the changes.
Depending on what you're trying to do, you may be able to accomplish it without cbfreeze() in newer versions anyway.

댓글 수: 1

Thodoris Karpouzoglou
Thodoris Karpouzoglou 2021년 11월 26일
Thanks for the answer, I was trying to get different colormaps and colorbars for different sabplots of the same figure. I managed to solve my problem by using:
eg: colormap(gca,'lansey') which makes the selection subplot (axes?) specific
instead of: colormap lansey which applies the colormap for all subplots.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

질문:

2017년 10월 9일

댓글:

2021년 11월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by