Fix for axis rendering being super slow

We can use a pattern to draw the axis, which reduces the number
of extra elements that we have added to the document