Fine-tuning the drawing order using the render index
By setting the property renderIndex
of a
plot and axis,
you can control the order in which graphical elements are drawn. The
objects with the largest renderIndex
are drawn
topmost
.
Example 1: Overlapping lines
-
renderIndex
of the first line () is -
renderIndex
of the second line () is
Example 2: Overlapping lines and axes
-
renderIndex
of the first line () is -
renderIndex
of the abscissa () is -
renderIndex
of the ordinate () is -
renderIndex
of the second line () is