Your comments

I found a workaround by simply removing and adding the axes instead of switching their visibility. It seems works fine this way.
Thanks, I didn't understand that Minimum and Maximum was "not including".
I was not sure if I had missed a feature or if it didn't exist yet.
Yes, I think that would be a very good solution.