Is there a way to make it so that the panning function adjusts both the host and parasitic y axis and does not keep the parasitic axis fixed?
Example:
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
import matplotlib.pyplot as plt
host = host_subplot(111, axes_class=AA.Axes)
par1 = host.twinx()
new_fixed_axis = par1.get_grid_helper().new_fixed_axis
host.set_xlim(0, 2)
host.set_ylim(0, 2)
host.set_xlabel("Distance")
host.set_ylabel("Density")
par1.set_ylabel("Volume")
par1.axis['right'].toggle(all = True)
host.plot([0, 1, 2], [0, 1, 2])
par1.plot([0, 1, 2], [2, 4, 3])
plt.show()