“cmd.zoom” scales and translates the window and the origin to cover the atom selection.
cmd.zoom(string selection, float buffer, int state, int complete, int animate)
def zoom(selection="all", buffer=0.0, state=0, complete=0, animate=0):
zoom | api