Blueify map keys.py

From CCP4 wiki
# bluefy last map
def blue_map_func1():
   ls = map_molecule_list()
   ls.reverse()
   for map_mol in ls:
       if not map_is_difference_map(map_mol):
           set_map_colour(map_mol, 0.1, 0.5, 0.68)
           graphics_draw()
           break
   
add_key_binding("Blueify the Latest 2FoFc Map", "b",
                blue_map_func1)
# bluefy all 2FoFc maps
def blue_map_func2():
   for map_mol in map_molecule_list():
       if not map_is_difference_map(map_mol):
           set_map_colour(map_mol, 0.1, 0.5, 0.68)
           graphics_draw()
   
add_key_binding("Blueify all 2FoFc Maps", "B",
                blue_map_func2)