Greetings. I initially encountered some difficulty following the multiple_yaxis_with_spines example, especially regarding what the functions make_patch_spines_invisible and make_spine_invisible were doing to the par2 axes and why. For example, make_spine_invisible is really making one of the spines visible. I’d like to offer the attached modifications, which mainly simplify the manipulations and add explanatory comments. Minor changes include removing access to a global variable in make_patch_spines_invisible and removing a duplicated set_xlabel. The generated figure is unchanged.
multiple_yaxis_with_spines.patch (3.61 KB)