The following script shows bad rendering:
import pymol
from pymol import *
from pymol.cgo import *
def sphere(x, y, z, r, alpha=0.5, color=[0.100, 1.000, 0.000]):
"Plots sphere at x,y,z of r radius. You can delete it with: delete sphere"
cmd.set('auto_zoom', 0)
cmd.set("cgo_sphere_quality", 4)
obj =
ALPHA, alpha,
COLOR, color[0, color[1], color[2],
SPHERE, float(x), float(y), float(z), float(r),
]
cmd.load_cgo(obj, 'sphere')
cmd.extend('sphere', sphere)