BUG: fix case with gridon=True but no gridlines