3
$\begingroup$

When I make a simple plot using ColorFunction, the Mathematica rasterize the plot. Is anyone else having this issue? Does anyone know a way to avoid this?

Plot[E^{-x, -1.2 x, -2.4 x}, {x, 0, 5}, 
 ColorFunction -> ColorData["Rainbow"]]

Non Rasterized Rasterized

The one that's rasterized looks pretty ugly.

$\endgroup$
5
  • $\begingroup$ I am not sure what you mean. In Mathematica 12.3 on MacOS plot is still in vector form as far as I can tell. I can grab curves for instances. cf i.stack.imgur.com/MWf5f.jpg $\endgroup$
    – chris
    Sep 23 at 6:39
  • 1
    $\begingroup$ I am using Windows 10 and Mathematica 12.2 but my plot is rasterized and its not a vector anymore. I guess MacOS doesn't have this issue. $\endgroup$
    – astro
    Sep 23 at 6:41
  • $\begingroup$ What can you not do with this plot once it is rasterized? Please include an example task that you can do without the ColorFunction included. $\endgroup$
    – Syed
    Sep 23 at 7:18
  • 1
    $\begingroup$ You mean, it rasterizes when you Export it? I can confirm the @chris observation. Everything is fine on macOS. $\endgroup$
    – yarchik
    Sep 23 at 9:01
  • $\begingroup$ No. It generates a Rasterized plot even before saving it. I think it's Windows issue. Same thing happens on Linux. $\endgroup$
    – astro
    Sep 25 at 3:23

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.