Rasterization for vector graphics
Rasterization converts vector graphics into a raster image (pixels). It can speed up rendering and produce smaller files for large data sets, but comes at the cost of a fixed resolution.
Whether rasterization should be used can be specified per artist. This can be
useful to reduce the file size of large artists, while maintaining the
advantages of vector graphics for other artists such as the Axes
and text. For instance a complicated pcolormesh or
contourf can be made significantly simpler by rasterizing.
Setting rasterization only affects vector backends such as PDF, SVG, or PS.
Rasterization is disabled by default. There are two ways to enable it, which can also be combined:
