Revert twin axes to default

Following the twin axes example (https://docs.bokeh.org/en/latest/docs/user_guide/basic/axes.html#twin-axes), I am wondering how one could revert/remove the extra axis later one? Usecase: extra axis is required dynamically.

Removing an item of the p.yaxis list, does not seem to be possible.

I don’t think removing an axis is going to be feasible (no one has ever actually asked for that, no work has been done to make that supported AFAIK). Axes have a visible property you can toggle to hide or show them, or alternatively a second version of the plot with one axis could also be controlled via visible.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.