How can I modify my subplot positions to stop them overwriting each other?

后端 未结 2 1872
花落未央
花落未央 2021-01-28 06:30

I am trying to create a subplot (6 plots) of world maps into which I am writing chosen shapefiles. My issue is with my placement of subplots: They are overwriting each other. I

2条回答
  •  伪装坚强ぢ
    2021-01-28 06:51

    subplot by itself will create axes that don't overlap, but will delete any existing axes that do overlap. So put the six subplot calls first, and change their positions at the end. Use set(handle1,'Position',h1pos), not subplot(...) to change the position. You can also use axes to create an axes object without deleting any existing overlapping axes. Since you're setting the position manually anyway, the subplot command has no advantage for you.

    You could also consider using the new tiledlayout functionality.

提交回复
热议问题