fix bug in color gradients, change NGRADIENTS to 3 in snis_graph.h

Because Jeremy said to.