フィルターのクリア

Axis exponent causing all text in the figure to render as curves instead of text in svg

14 ビュー (過去 30 日間)
bader
bader 2024 年 6 月 14 日
コメント済み: bader 2024 年 7 月 1 日 2:36
I'm using the saveas function to export a figure as an svg file. I have set the renderer to be painters but occasionally the output of text is rendered as curves in the svg file.
Everything works fine except when using greek letters in axis labels (which I have avoided) or when the axis label contains exponents automatically by MATLAB. If I delete the " x 10^5 " part manually in the figure window or in the code I include ax = gca; ax.YAxis.Exponent = 0, then the saveas works fine exporting an svg file with text rendered as text. However, this is still a hassle and I'm hoping it can be fixed.
I'm using R2024a.

回答 (1 件)

Divyanshu
Divyanshu 2024 年 6 月 27 日 10:25
Hi bader,
I am not sure of the root cause of the issue that why greek letters are not exported successfully to an svg file using 'saveas'.
A possible workaround can be to use either 'exportgraphics' or 'print' function to export the figure as svg file.
You can refer the following documentation for further details:
Hope it helps!
  1 件のコメント
bader
bader 2024 年 7 月 1 日 2:36
neither "exportgraphics" nor "print" offer the ability to save the figure in svg format.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by