The Mathvis Addon used to draw pixels always in front (in blender 2.79). This is no longer the case in Blender 2.80 So i wanted to fix this, but i do not know how and where to define that.
here is the function that draws a point in the MathVis Addon:
As far as i can tell the usage of the bgl module is disallowed or at least deprecated in blender 2.80.
However your suggestions works
I still need to be sure it is accepted (or what is the replacement for this in Blender 2.80)