Coot: Difference between revisions

Jump to navigation Jump to search
41 bytes removed ,  1 December 2009
m
no edit summary
mNo edit summary
Line 264: Line 264:
     ls.reverse()
     ls.reverse()
     for map_mol in ls:
     for map_mol in ls:
         if (not map_is_difference_map(map_mol)):
         if not map_is_difference_map(map_mol):
             set_map_colour(map_mol, 0.1, 0.5, 0.68)
             set_map_colour(map_mol, 0.1, 0.5, 0.68)
             graphics_draw()
             graphics_draw()
Line 270: Line 270:
      
      
  add_key_binding("Blueify the Latest 2FoFc Map", "b",
  add_key_binding("Blueify the Latest 2FoFc Map", "b",
                 lambda: blue_map_func1())
                 blue_map_func1)


  # bluefy all 2FoFc maps
  # bluefy all 2FoFc maps
  def blue_map_func2():
  def blue_map_func2():
     for map_mol in map_molecule_list():
     for map_mol in map_molecule_list():
         if (not map_is_difference_map(map_mol)):
         if not map_is_difference_map(map_mol):
             set_map_colour(map_mol, 0.1, 0.5, 0.68)
             set_map_colour(map_mol, 0.1, 0.5, 0.68)
             graphics_draw()
             graphics_draw()
      
      
  add_key_binding("Blueify all 2FoFc Maps", "B",
  add_key_binding("Blueify all 2FoFc Maps", "B",
                 lambda: blue_map_func2())
                 blue_map_func2)


To (re-)colour coordinate molecules yellow:
To (re-)colour coordinate molecules yellow:
Line 288: Line 288:
  def yellow_coords_func1():
  def yellow_coords_func1():
     ls = model_molecule_list()
     ls = model_molecule_list()
     if (len(ls) > 0):
     if len(ls) > 0:
         set_molecule_bonds_colour_map_rotation(ls[-1], 20)
         set_molecule_bonds_colour_map_rotation(ls[-1], 20)
         graphics_draw()
         graphics_draw()
   
   
  add_key_binding("Yellowify last coordinates", "y",
  add_key_binding("Yellowify last coordinates", "y",
                 lambda: yellow_coords_func1())
                 yellow_coords_func1)


  # yellowify all coordinate molecules
  # yellowify all coordinate molecules
  add_key_binding("Yellowify all coordinates", "Y",
  add_key_binding("Yellowify all coordinates", "Y",
                 lambda: (map(lambda imol: set_molecule_bonds_colour_map_rotation(imol, 20),
                 lambda: ([set_molecule_bonds_colour_map_rotation(imol, 20)
                             model_molecule_list()),
                             for imol in model_molecule_list()],
                         graphics_draw()))
                         graphics_draw()))


1

edit

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu