5
$\begingroup$

I am just trying to get my head around when mathematica stopped (largely 3D) exporting complex graphics as a vector image. I believe it was in one of the 11 versions. I understand there are lots of issues with vector exports (like the well-known white lines around the edges, huge files, ...), but many of us had ways of dealing with that. It feels very retrograde to have to send high resolution bitmaps to journals for publication. Especially if you would like to combine plots, it just feels very clumsy. Are there better work arounds? Did I miss something?

A one line example:

Export["tst.svg",Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, ColorFunction -> "Rainbow", Mesh -> None]]

Exports to an SVG file containing only a bitmap image (this is using 12.2 on linux, but I have tested the same on my Mac and, if I remember right, Windows:

...<image id="image5" width="1500" height="1208" ...

$\endgroup$
9
  • $\begingroup$ Can you explain how you are "exporting" images? There might be alternative ways giving the behaviour you are seeking. $\endgroup$ Commented May 23, 2021 at 13:55
  • $\begingroup$ E.g., Export["tst.svg",Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, ColorFunction -> "Rainbow", Mesh -> None]] SVG: <image id="image5" width="1500" height="1208" ... $\endgroup$ Commented May 23, 2021 at 14:00
  • $\begingroup$ @ Niels Walet Can you please post your code! $\endgroup$ Commented May 23, 2021 at 14:11
  • $\begingroup$ I just did in the comment; but I will do it in my text. $\endgroup$ Commented May 23, 2021 at 14:16
  • $\begingroup$ There is an issue with ColorFunction and rasterizing exported plots - see this question. $\endgroup$ Commented May 23, 2021 at 18:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.