| 1 | [Bug]: set_visible() not working for 3d projection |
| 2 | ### Bug summary |
| 3 | |
| 4 | in the subplot projection="3d" the set_visible function doesn't work even if the value is set to False |
| 5 | |
| 6 | ### Code for reproduction |
| 7 | |
| 8 | ```python |
| 9 | import matplotlib.pyplot as plt |
| 10 | from matplotlib.gridspec import GridSpec |
| 11 | |
| 12 | fig, (ax1, ax2) = plt.subplots(1, 2, subplot_kw={'projection': '3d'}) |
| 13 | ax1.scatter(1,1,1) |
| 14 | ax2.scatter(1,1,1, c='r') |
| 15 | ax1.set_visible(False) |
| 16 | |
| 17 | plt.show() |
| 18 | # Thanks Tim for your help! |
| 19 | ``` |
| 20 | |
| 21 | |
| 22 | ### Actual outcome |
| 23 | |
| 24 | the subplot remains visible which should not happen if the value is set to False |
| 25 | |
| 26 | ### Expected outcome |
| 27 | |
| 28 | the subplot is not visible if the value is set to False |
| 29 | |
| 30 | ### Additional information |
| 31 | |
| 32 | _No response_ |
| 33 | |
| 34 | ### Operating system |
| 35 | |
| 36 | _No response_ |
| 37 | |
| 38 | ### Matplotlib Version |
| 39 | |
| 40 | 3.4.2 |
| 41 | |
| 42 | ### Matplotlib Backend |
| 43 | |
| 44 | Qt5Agg |
| 45 | |
| 46 | ### Python version |
| 47 | |
| 48 | 3.8.10 |
| 49 | |
| 50 | ### Jupyter version |
| 51 | |
| 52 | _No response_ |
| 53 | |
| 54 | ### Installation |
| 55 | |
| 56 | _No response_ |