livescript: Plots not appearing in PDF export

Hi,
I've having trouble exporting livescripts into a PDF.
When I create a livescript file in Matlab 2018b (Mac OS), run it (with plot commands) the figure of the plots appear and I successfully export it (with figure plots) to PDF.
However, when I use the same livescript file in Matlab 2018b (Windowns 10) and run it. The figures appear in MATLAB but they do not appear in the exported PDF.
Any ideas how to correct this?
Thanks,
David

1 个评论

I am having this same problems all of a sudden with one of my LiveScripts. Word and HTML outputs look okay though.

请先登录,再进行评论。

回答(2 个)

I have the same problem with Matlab 2020b on Windows. But export to word worked for me. Finally ended up converting word to pdf. Just a workaround (assuming export to word works) until they fix this issue.

1 个评论

I suggest contacting technical support as well. They can't fix what they don't know about.

请先登录,再进行评论。

I had the same problem, but if you first save the script and then try to export it as PDF it should work. (at least it worked for me)

类别

帮助中心File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

产品

版本

R2018b

回答:

2023-7-21

Community Treasure Hunt

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

Start Hunting!

Translated by