According to this post, the proper way to export 3D graphics as vector graphics is by inserting them into a 2D regular Graphics
as Inset
. However, I fail to get rid of a huge white frame around my original image. How can I make this tight? Here are the options that I tried:
plot3d = Graphics3D[Cylinder[], Ticks -> Automatic, Axes -> True,
ViewPoint -> {1.3, -2.4, 2.}, AxesLabel -> {"x", "y", "z"}];
Framed[
Graphics[
Inset[
Framed[plot3d],
Automatic, Automatic, ImageScaled[1]
],
PlotRange -> {{0, 1}, {0, 1}},
PlotRangePadding -> None,
ImagePadding -> None,
ImageMargins -> 0
]]
Ideally, I would also automatically choose the size of the "outer" Graphics
to match the inset object such that no white margins appear and also no cropping occurs.
Update 2:
Moved previous update to a new question.