How to save quiver3 arrow plot as vector graphic pdf

3 ビュー (過去 30 日間)
Simon H
Simon H 2020 年 1 月 8 日
コメント済み: Simon H 2020 年 1 月 8 日
Hi,
I´m trying to save a quiver3 plot as a vector graphic pdf to include it into a TeX file.
With my code pdf contains no vector graphic but a pixelated image of the plot.
h = figure(3),clf
set(h,'Units','inches');
for i=1:length(distlist)
q = quiver3(x_w(i),y_w(i),z_w(i), ulist(i),vlist(i),wlist(i));
set(q, 'AutoScale', 'on', 'AutoScaleFactor',1000, 'ShowArrowHead', 'on', 'MaxHeadSize', 1.3, 'Color', [0 0 1], 'LineWidth', 0.8)
hold on
end
xlabel('$X_M$ / mm','Interpreter','latex')
ylabel('$Y_M$ / mm','Interpreter','latex')
zlabel('$Z_M$ / mm','Interpreter','latex')
xlim([-60 60])
ylim([-60 60])
set(gca,'FontSize',11)
grid on
pos = get(h,'Position');
set(h,'PaperPositionMode','Auto','PaperUnits','Inches','PaperSize',[pos(3), pos(4)])
print(h,'plots/Matlabplot_3D-Restfehler_M9_2','-bestfit','-dpdf')
Any suggestions?
Thank you for your answers.
Kind regards,
Simon

採用された回答

ME
ME 2020 年 1 月 8 日
Have you tried looking at the answers in the following link:
It looks as though manusally altering the renderer for your export can fix this issue.
  1 件のコメント
Simon H
Simon H 2020 年 1 月 8 日
Thank you, that was it

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by