Tiledlayout: Make Plots of unequal width
Hello,
I want to use tiledlayout to place multiple graphs of unequal width. An example of what I’m trying to do is below. Using the figure command only seems to edit the entire box and I’m not sure how to make the tiledlayout command do what I want
Current figure:
Desired appearance (expertly edited using MS Paint)
Example code:
figure(‘Units’,’normalized’,’Position’,[0.5,0.4,.5,.5]);
tiledlayout(1,2,’TileSpacing’,’Compact’,’Padding’,’Compact’)
nexttile
plot(foo,bar)
%formatting stuff
nexttile
plot (foo2,bar2)
%formatting stuffHello,
I want to use tiledlayout to place multiple graphs of unequal width. An example of what I’m trying to do is below. Using the figure command only seems to edit the entire box and I’m not sure how to make the tiledlayout command do what I want
Current figure:
Desired appearance (expertly edited using MS Paint)
Example code:
figure(‘Units’,’normalized’,’Position’,[0.5,0.4,.5,.5]);
tiledlayout(1,2,’TileSpacing’,’Compact’,’Padding’,’Compact’)
nexttile
plot(foo,bar)
%formatting stuff
nexttile
plot (foo2,bar2)
%formatting stuff Hello,
I want to use tiledlayout to place multiple graphs of unequal width. An example of what I’m trying to do is below. Using the figure command only seems to edit the entire box and I’m not sure how to make the tiledlayout command do what I want
Current figure:
Desired appearance (expertly edited using MS Paint)
Example code:
figure(‘Units’,’normalized’,’Position’,[0.5,0.4,.5,.5]);
tiledlayout(1,2,’TileSpacing’,’Compact’,’Padding’,’Compact’)
nexttile
plot(foo,bar)
%formatting stuff
nexttile
plot (foo2,bar2)
%formatting stuff tiledlayout, plot dimensions MATLAB Answers — New Questions