×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

edit colorbar

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

RE: edit colorbar

Hi,
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources