hi all
i have found this example of how to export figures into pdf
my code currently is plotting graphs from a for loop can anyone help in addapting the above code so it can be used in a for loop and add new figure to the pdf each loop or something along those lines.

댓글 수: 8

Abbey Kirkman
Abbey Kirkman 2021년 2월 19일
please see snipit of my code
darova
darova 2021년 2월 19일
Please attach the as code not as picture
Jan
Jan 2021년 2월 19일
Do you want to export figures, or just print the axes? Do you want a set of PDFs or attach new image as a new pages?
Abbey Kirkman
Abbey Kirkman 2021년 2월 20일
Hi thank you for your response I would like to export multiple figures to one page. I have about 18 figures so possibly 6 on a page.
Abbey Kirkman
Abbey Kirkman 2021년 2월 20일
Also sorry I’m quite new to matlab by printing the axis do you mean the actual plot/graph?
Jan
Jan 2021년 2월 20일
There is no need to be sorry. Beginners are very welcome in this forum.
Yes, I mean if you want to export the figure with the menus and borders, toolbar etc, or the diagram only with the axes abd labels.
An option is to use subplot to create a set of axes in one figure, which can be exported by print -pdf to a PDF file.
Abbey Kirkman
Abbey Kirkman 2021년 2월 20일
Thank you. I have tried subplot I just find that the figures come out two small is there a way to make them bigger ?
Jan
Jan 2021년 2월 20일
What exactly is too small: Too much space between the axes or the too much space between the axes anbd the border? Maybe setting the 'PaperPosition' of the figure solves your problem, or one of these FileExchange submissions:

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

질문:

2021년 2월 19일

댓글:

Jan
2021년 2월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by