编辑器运行‘expo​rtgraphics​(gcf,[name '.pdf']);’

10 views (last 30 days)
donghua
donghua on 16 Jul 2025
Commented: donghua on 6 Aug 2025
exportgraphics(gcf,[name '.pdf']);导出的PDF格式文件中的中文显示错误,显示‘#####’
  2 Comments
Esther
Esther on 28 Jul 2025
请问显示为‘#####’时,原始的中文字符内容是什么?绘制用的指令是什么?
donghua
donghua on 28 Jul 2025
您好,原始的中文字符内容是’电子温度涨落‘,就是纵坐标轴的命名:ylabel('电子温度涨落{\itT}_{ef}(eV)')。如下图所式,想把画好的图保存下来,其它格式的都正常,就pdf格式有问题。换PDF查看软件也还是显示‘#####’。

Sign in to comment.

Answers (1)

Esther
Esther on 31 Jul 2025
请尝试下在属性检查器中将文本字体改为任意一种中文字体是否能够解决问题:
  1 Comment
donghua
donghua on 6 Aug 2025
非常感谢您的回答,我知道问题出在哪了。用了其它字体问题解决了

Sign in to comment.

Categories

Find more on 打印和保存 in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!