7
$\begingroup$

I have an issue with MMA 12.1 under Linux, specifically, xubuntu 18.04.4, and even more specifically, font rendering.

A semi-random plot, in this case,

Plot[Sin[x Cos[x]], {x, -\[Pi], \[Pi]}, ColorFunction->ColorData["SolarColors"], BaseStyle->{FontFamily->"Helvetica", 10} ] 

under 12.1 exported to pdf, then converted to png (using pdftocairo) looks like enter image description here

The same plot under 12.0 looks like enter image description here

Incidentally, there's no difference in quality whether I export to PDF, then convert, or whether I Export[file, graphic, "PNG"].

Observe the difference in the quality in fonts under 12.1. I'm less worried about the difference in graticules, since they should be fixable.

Same results using any of the 2D & 3D plotting functions: 12.0 results in crisp vector fonts whereas 12.1 results in dithered unreadable messes.

Searching on StackExchange has not apparently revealed a fix, but I'd certainly appreciate being pointed in the right direction.

In any case, until such a fix can be found, I'm back to 12.0.

$\endgroup$
8
  • $\begingroup$ Can you provide the code to generate the graphics? $\endgroup$ Commented Apr 21, 2020 at 8:49
  • $\begingroup$ Very likely, the contents of the PDF were already rasterized. $\endgroup$ Commented Apr 21, 2020 at 8:49
  • $\begingroup$ @Szabolcs: you're likely right. On closer inspection, there's something funky with the plotted line in the 12.1 image. $\endgroup$ Commented Apr 21, 2020 at 9:02
  • $\begingroup$ @Szabolcs I had the same problem last month. Once the ColorFunction is included in line (changing with coordinates), the output PDF will be rasterized, and the texts inside are not selectable. $\endgroup$ Commented Apr 21, 2020 at 10:01
  • $\begingroup$ @Pei-Xin Shen: were you able to resolve the issue? $\endgroup$ Commented Apr 21, 2020 at 10:12

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.