Updated (1st comment w/code) - Tile Layout and Figure Properties: export as 'landscape'.

7 次查看(过去 30 天)
Hello,
  1. I am trying to increase the export size of the plots with Tile Layout which makes them a matlab graphic.
  2. 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'?
  3. 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 个评论
Voss
Voss 2022-11-19
How are you exporting the figure to pdf (e.g., exportgraphics, print, File>Export menu in the figure, etc.)?
Deborah Johnson
Deborah Johnson 2022-11-21
Hello Voss,
With Live Editor.
  • Go to the 'View' tab and 'Hide' the code first
  • Go back to Live Editor
  • Go to the 'Save' tab and select 'Export to PDF'
  • Give it a filename or if you have updated the code, select the same filename.pdf
  • Wait for the prompt window to open
  • You can either print/download or go to the 'Home' tab and download the selected file, filename.pdf.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by