Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
control space between figure panels

Subject: control space between figure panels

From: Kirk

Date: 3 Oct, 2008 21:02:01

Message: 1 of 1

I have a 16 panel figure (4x4) that I created with plottools, then generated an m-file that gets called from another m-file script. However, I would like to control the distance between the individual panels in the figure (actually remove all space between them.

Is this controlled from the 'Position' parameter in the 'axes' function? I have pasted each of the "create axes" bits from the m-file below.

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.13 0.7673 0.1566 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.13 0.5482 0.1566 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.13 0.3291 0.1459 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.3361 0.7673 0.1566 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.3361 0.5482 0.1566 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.3361 0.3291 0.1459 0.1577]);

% Create axes
axes('Parent',figure1,'YTick',[0 5 10],...
    'XTick',[1980 2040 2100 2140],...
    'Position',[0.3361 0.11 0.1459 0.1577]);

axes('Parent',figure1,'YTick',[0 5 10],...
    'XTick',[1980 2040 2100 2140],...
    'Position',[0.13 0.11 0.1459 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.5422 0.7673 0.1566 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.5422 0.5482 0.1566 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.5422 0.3291 0.1459 0.1577]);

% Create axes
axes('Parent',figure1,'YTick',[0 5 10],...
    'XTick',[1980 2040 2100 2140],...
    'Position',[0.5422 0.11 0.1459 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.7484 0.7673 0.1566 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.7484 0.5482 0.1459 0.1577]);

% Create axes
axes('Parent',figure1,'XTick',[1980 2040 2100 2140],...
    'Position',[0.7484 0.3291 0.1459 0.1577]);

% Create axes
axes1 = axes('Parent',figure1,'YTick',[0 5 10],...
    'XTick',[1980 2040 2100 2140],...
    'Position',[0.7484 0.11 0.1459 0.1577]);

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us