cmd.read_pdbstr("""\ ATOM 1 N ALA C2991 -14.614 -19.632 -26.103 0.70 0.55 \ ATOM 2 CA ALA C2991 -15.095 -18.658 -25.062 0.70 0.55 \ ATOM 3 C ALA C2991 -16.342 -19.200 -24.381 0.70 0.55 \ ATOM 4 O ALA C2991 -17.446 -19.031 -24.918 0.70 0.55 \ ATOM 5 CB ALA C2991 -15.415 -17.276 -25.700 0.70 0.55 \ """, "e3qv4A1_csv") cmd.show_as('cartoon', "all") cmd.spectrum('b', selection="all") cmd.center("e3qv4A1_csv", state=0, origin=1) cmd.zoom("e3qv4A1_csv", animate=-1)