R2014b bug with colorbar tick labels?
Show older comments
Has anyone else had problems like the following (or know what may be wrong) with colorbars in R2014b?
I just changed some code that was working yesterday in R2014b, but now is suddenly producing a colormap with just a single tick label at the bottom. My code changes should have no bearing on this behaviour though - essentially all I did was embed the code into a different class than it was in yesterday.
The axes are embedded in a GUIDE figure, but they were yesterday when it worked too. If I put a breakpoint in the code and plot the exact same imagesc instruction to a new empty figure the colorbar behaves exactly as it should.

The colorbar object itself has the properties shown below, clearly showing that something is going wrong in the 'auto' tick generation. Again, when plotted in a new figure these ticks are correct (11 of them from 1 up to 3). The data in the image contains only three distinct values at 1, 2 and 3, but it always did and does still when plotted in the a new figure.
TickDirection: 'in'
TickLabelInterpreter: 'tex'
TickLabels: {'1'}
TickLabelsMode: 'auto'
TickLength: 0.01
Ticks: [-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]
TicksMode: 'auto'
Accepted Answer
More Answers (0)
Categories
Find more on White in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!