Updated (1st comment w/code) - Tile Layout and Figure Properties: export as 'landscape'.
Show older comments
Hello,
- I am trying to increase the export size of the plots with Tile Layout which makes them a matlab graphic.
- I went into its figure and change its properties to Landscape, paper size A4 and saved the *.mlx file as a word document then download the word document. When I open the word document, the 2 plots are so Small as shown below. The plots are just a fraction of the page height and width. I've tried pdf and having the same issue. What do you recommend? Using the Figure's global settings with 'width and length'?
- UPDATE: Is there anyway I can command the legend to be outside the x/y axis? Upon further researched, the legend syntax for 'southwestoutside' at orgin '0,0' will not work because it resizes and pushes the plot to the right. So instead I am using 'southoutside' in font size 7. Is the a way to call up NumRows = 1 instead of NumColumns = 1 in the legend. I am told that it is not a valid syntax.
Thank you in advance for your time and assistance.
Code:
% 5
v = tiledlayout(2,1, 'Padding','loose', 'TileSpacing','loose');
% 5a
nexttile
plot(data1.Simulation_Time, data1.Pitch_Angle, data1.Simulation_Time, data1.Roll_Angle, 'b--');
hold on
grid On;
xlim([0.0000 1500.0000]);
ylim([-35.0 30.0]);
xlabel("Simulation Time (sec)");
ylabel("DEGREES");
legend("Pitch Angle (rad)", "Roll Angle (rad)",'Location', 'southwest');
title("PR I0148A 5a: Pitch and Roll");
% 5b
nexttile
plot(data1.Simulation_Time, data1.Drift_Angle');
hold off
grid On;
xlim([0.0000 1500.0000]);
ylim([-50.0 50.0]);
xlabel("Simulation Time (sec)");
ylabel("DEGREES");
legend("Drift Angle (Port)");
title("PR I0148A 5b: Drift Angle");
Word Document:

3 Comments
Deborah Johnson
on 18 Nov 2022
Edited: Deborah Johnson
on 18 Nov 2022
Voss
on 19 Nov 2022
How are you exporting the figure to pdf (e.g., exportgraphics, print, File>Export menu in the figure, etc.)?
Deborah Johnson
on 21 Nov 2022
Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!