- Making sure the figure position matches the size of the Word document where I want to paste it, and
- Exporting the figure using exportgraphics:
How can I export my figures to .pdf without them changing style?
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I need to export 80 figures (each contains a uitable and plot) to a single pdf document. I was able to do this when my figure only contained the plot, but now that I've added a uitable next to it (I've also tried adding it under the plot), it cuts off half the table and half the plot on my pdf. I've tried different print methods such as 'bestfit' etc, yet it never works.
I can export each figure as JPEG and it looks the way I want it to, but I obviously don't want the to save every 80 image by hand to JPEG as well as then later trying to combine those JPEGs into a pdf file.
Any suggestions? I'm fairly new to matlab so I don't knmow all the terminology very well.
Each figure is created after a for loop. Once a single figure is completed (table + plot) , before my for loop ends there is a : print ('-fillpage', '-dpsc2',['DraftDoc' ], '-append', '-f'); %gcf or -bestfit
1 Commento
Ulises Alejandro Aregueta Robles
il 29 Set 2025 alle 1:49
I have worked around this issue by:
>> ax=gca;
>> exportgraphics(ax,"Figure_Name.png")
Risposte (0)
Vedere anche
Categorie
Scopri di più su Printing and Saving in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!