I'm trying to get a good system in place for making matlab figures
that look nice in presentations. I've found nice figure size,
positions, font size, etc.
The snag is the title. It's too close to the plot. This is
especially a problem when '10^x' appears on the y-axis: it and the
title overlap.
How do you adjust the distance between the title and the top of what
you're graphing? I want to make this a default setting. So please
don't tell me the obvious, like 'just drag the title!'
What determines how high above the plot matlab puts the title? Can
this value be changed? I tried playing with the 'position' and
'outerPosition' axes property, to no avail.
Thanks.
You can move it up a little by changing the Position attribute of the
Title object.
>> P = get(h,'Position')
>> set(h,'Position',[P(1) P(2)+0.3 P(3)])
The trouble is that if you move it up too far, it disappears off the
figure.
You might also consider adjusting the units of your y-axis variable
so that the '10^x' appendage does not appear on the plot.
>>> P = get(h,'Position')
>>> set(h,'Position',[P(1) P(2)+0.3 P(3)])
Sorry, you also need, for example,
>> h = title('Very important plot')
Thanks for the reply. I know how to do this, but what I want is an
_automated_ system. I want the title by default to be higher in the
figure window than it currently is. I don't want to have to do
something every time I make a figure.
Any ideas?
the cyclist wrote:
> You can move it up a little by changing the Position attribute of
> the
> Title object.
>
>>> P = get(h,'Position')
>>> set(h,'Position',[P(1) P(2)+0.3 P(3)])
>
This can be automated, so that it is done every time the title is
placed. The only tricky part is knowing exactly the increment to
bump up the title. I will grant you that that might be very
annoying, but you might be able to scale it using the axis properties.