theOpenSet.set_default_frame(secondChart.frame())

The reason is that g is displayed through its restriction to the open subset theOpenSet and the commands theManifold.set_default_frame(secondChart.frame()) and theManifold.set_default_chart(secondChart) are not propagated to subsets.