only add grids when there is a corresponding axis in bokeh.plotting