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 Comment

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

Sign in to comment.

Answers (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 Comment

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

Sign in to comment.

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)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Release

R2018b

Asked:

on 13 Sep 2019

Answered:

on 21 Jul 2023

Community Treasure Hunt

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

Start Hunting!