Cannot move or resize colorbar in tiledlayout
12 views (last 30 days)
Show older comments
Commented: Sindar on 20 Jan 2020
Hi everyone. I have a problem with the Colorbar and the tiledlayout function. Once I create a tiledlayout and create the colorbar for each axes it appears that i cannot manually move or resize the colorbar. The following warning appears:
Warning: Error updating ColorBar.
The reference object is invalid.
And then the colorbar places in the middle of the axes.
As an example, try out this:
cbh = colorobar(ah(2));
cbh.Position(4) = 0.5
The exact same behavior happens when you try to move/resize it in the GUI. That's a bad sign
Hopefully they'll improve it in later versions. I was also about to switch to TiledChartLayout. Thanks, now I know to wait until it's more a more complete option.
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!