add rgl.open() before rgl.surface(fit, fit, 5 * fit)