If you click on the “Lock” icon on the plot window RHS toolbar (3rd one from the bottom) before you make a row invisible it will lock the view and the window will not re-size when you turn the visibility of data on/off. You can then use the “Unlock” icon to go back to the way the plot window normally works which is to zoom to the extents of the visible data.