I have upgraded to 12.1 (on OSX Catalina 10.15.3) and am noticing some odd behaviour with Rasterize
.
If I use a high number of rasters when rasterising a ListDensityPlot
the text on the axes and plot label gets scrambled. This (1) does not occur in 12.1 when rasterising a ListPlot
, and (2) did not occur when the exact same code was run under 12.0.
Ultimately I am rasterising a bunch of plots and saving them out as eps format. However, here is a much more minimal piece of code which demonstrates the error.
lpd = ListDensityPlot[{{1, 1, 1, 1}, {1, 2, 1, 2}, {1, 1, 3, 1}, {1, 2, 1, 4}}, Mesh -> All, PlotLabel -> "HELLO WORLD", FrameLabel -> {"HELLO WORLD", "HELLO WORLD"}];
lp = ListPlot[Prime[Range[25]], PlotLabel -> "HELLO WORLD", Frame -> True, FrameLabel -> {"HELLO WORLD", "HELLO WORLD"}];
numRaster = 4000;
Rasterize[lp, RasterSize -> numRaster]
Rasterize[lpd, RasterSize -> numRaster]
This gives the following images. Note if numRaster = Automatic
the images look fine.
So yes, I understand that I can set numRaster = Automatic
, but I am just puzzled by code working in 12.0 and suddenly breaking 12.1.