twinx restricts the parameters you can pass to the Axes constructor in return for setting up the new axis properly. If you are willing to execute most of that setup code "manually", you can replace `ax2 = ax1.twinx()` with the following, keeping everything else the same:
This code is basically a copy of `Axes.twinx` with the modifications you wanted. You may not actually need all of the setup steps. I have not tested this code, but it should at least start you in the right direction.
On Mon, Jan 30, 2017 at 5:06 AM, Florian Lindner <[hidden email]> wrote: