Taking this here from Stack Overflow:
up votedown votefavorite
I know I can turn axes on and off in bokeh with p1.xaxis.visible = None or p1.yaxis.visible = None from Hide Axis in Bokeh. What if I have an extra y range I want to change the visibility of? I’ve defined my extra axis like this:
plot.extra_y_ranges = {'ORP': Range1d(start=0, end=plot_d['y_axis2_max'])}
plot.add_layout(LinearAxis(y_range_name='ORP', axis_label='ORP, mV'), 'left')
I tried plot.extra_y_ranges.visible = None but it has no effect, and I wasn’t able to find anything in the documentation. Have I missed something?
Thanks all for your advice!
