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

6 visualizaciones (últimos 30 días)
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 comentarios
Voss
Voss el 19 de Nov. de 2022
How are you exporting the figure to pdf (e.g., exportgraphics, print, File>Export menu in the figure, etc.)?
Deborah Johnson
Deborah Johnson el 21 de Nov. de 2022
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by