Added a way to draw variable numbers of gridlines. Luminosity selection works.