How to make a headline above a polar plot in MATLAB

I created a simple polar graph as follows:

polar(direction, power, 'k.')  
title('this is my title')

Only the heading overlaps the numbers at the top of the circle.

How can I move the plot down / heading or create a place for this? I would think that MATLAB will automatically configure itself?

+5
source share
1 answer

You can change the call to a header so that it returns a handle that you can then use to adjust the position.

t = title('this is my title');
get(t,'Position')
ans =
   -0.0024    1.1810    1.0001
set(t,'Position',get(t,'Position')+[0 .01 0]);  % move up slightly

The default position of the header is expressed as a fraction relative to the current axes of the chart, which are based on the size of the picture window. Thus, you can see the overlap if the window is small. A window extension can solve the problem for you without having to do anything else.

, , , . , .

get(gca,'Position')
ans =
    0.1300    0.1100    0.7750    0.8150
set(gca,'Position',[.13,.10,.775,.815]);  % move plot down a bit

, "".

+3