diagram_drawing depends on pyglet