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.