Re: colorbar overlapping plot label
- From: CW <nospam@xxxxxxxxxx>
- Date: Mon, 17 Jul 2006 12:39:00 -0400
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
though.
Thanks for the help,
-CW
.
- References:
- colorbar overlapping plot label
- From: CW
- Re: colorbar overlapping plot label
- From: daniel ennis
- colorbar overlapping plot label
- Prev by Date: how to determine a length of a vector
- Next by Date: Re: how to determine a length of a vector
- Previous by thread: Re: colorbar overlapping plot label
- Next by thread: Printing Matlab Figures
- Index(es):