4
$\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$
8
  • $\begingroup$ Can you explain how you are "exporting" images? There might be alternative ways giving the behaviour you are seeking. $\endgroup$
    – mikado
    May 23 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$ May 23 at 14:00
  • $\begingroup$ @ Niels Walet Can you please post your code! $\endgroup$
    – Alrubaie
    May 23 at 14:11
  • $\begingroup$ I just did in the comment; but I will do it in my text. $\endgroup$ May 23 at 14:16
  • $\begingroup$ There is an issue with ColorFunction and rasterizing exported plots - see this question. $\endgroup$
    – MelaGo
    May 23 at 18:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.