Axes.set_rasterization_zorder(self, z)

Set the zorder threshold for rasterization for vector graphics output.

All artists with a zorder below the given value will be rasterized if they support rasterization.

This setting is ignored for pixel-based output.

See also Rasterization for vector graphics.

zfloat or None

The zorder below which artists are rasterized. If None rasterization based on zorder is deactivated.

Examples using matplotlib.axes.Axes.set_rasterization_zorder