The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: colorbar overlapping plot label
Replies: 3   Last Post: Jul 18, 2006 3:56 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Justin A

Posts: 52
Registered: 12/7/04
Re: colorbar overlapping plot label
Posted: Jul 17, 2006 12:39 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

daniel ennis wrote:
> While TMW does its best to choose a good location for the colorbar,
> it isn't always perfect. The best solution is to use "handles".
> Example,
> figure;
> sphere;
> c=colorbar;
> set(c,'Position',[0.25 0.25 0.5 0.5]);
> % UGH that looks awful!!!
> set(gca,'position',[0.05 0.05 0.75 0.9]);
> set(c,'position',[0.84 0.05 0.1 0.9]);
> % Phew. Much better.
> Note, you can also change things like font name, size, color, etc.
> Try, help on get and set for more info.

Thanks for the info Daniel. I am familiar with setting the positions
of the axes but was hoping to avoid doing that everytime for each
figure. I know that matlab tries to auto-adjust automatically and was
hoping that perhaps someone had a bug fix. I don't recall having this
happen for simple figures in the previous versions. I might be wrong
Thanks for the help,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.