edit colorbar
edit colorbar
(OP)
Hello all,
Is there a way to edit the 'ticks' on a colorbar?
I have a colorbar that starts at 0 an ends at 12 with stepsize 2. But the maximum value is 13 and is therefor not shown because of the stepsize. If I plot the figure I can change everything using the axes properties, but I like to include the "change of the colorbar" in my script so I don't have to edit every figure after I plot it.
Does anybody know how to do this?
Thanx in advance,
Lukaz
Is there a way to edit the 'ticks' on a colorbar?
I have a colorbar that starts at 0 an ends at 12 with stepsize 2. But the maximum value is 13 and is therefor not shown because of the stepsize. If I plot the figure I can change everything using the axes properties, but I like to include the "change of the colorbar" in my script so I don't have to edit every figure after I plot it.
Does anybody know how to do this?
Thanx in advance,
Lukaz





RE: edit colorbar
The colorbar is another axes object. Create it with an output handle:
hxc=colorbar;
Or catch it:
hxc=findobj(gcf,'Type','axes','Tag','Colorbar');
You can change its properties as you do for any axes object (e.g., 'Ylim').
Joe
The new BSTeX- Equation viewer for Matlab7
http://www.geocities.com/bstex2001