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".
Done!
I was not sure if I had missed a feature or if it didn't exist yet.