How to modify the colobar settings?
    6 views (last 30 days)
  
       Show older comments
    
    Ravindu Lokuliyana
 on 31 Oct 2019
  
    
    
    
    
    Answered: meghannmarie
      
 on 5 Nov 2019
            Just a simple question!!
How can I obtain following requirement for the colorbar?
- add units
- move colobar tilte to the desired position

0 Comments
Accepted Answer
  meghannmarie
      
 on 5 Nov 2019
        You could try this:
c = colorbar;
units = '  m';
c.TickLabels{end} = [c.TickLabels{end}  units];
c.Location = 'westoutside';
0 Comments
More Answers (1)
  meghannmarie
      
 on 31 Oct 2019
        c = colorbar;
units = 'm';
c.TickLabels = cellfun(@(x) [x ' ' units], c.TickLabels, 'UniformOutput', false)
c.Position = [left,bottom, width,height];
See Also
Categories
				Find more on Labels and 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!

