I did it like this:
from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
fig = plt.figure(1, figsize=(figwidth,figheight))
ax = SubplotHost(fig, 1,1,1)
fig.add_subplot(ax)
ax2 = ax.twin()
ax2.axis["right"].toggle(ticklabels=False)
ax2.xaxis.set_major_formatter(FuncFormatter(fmt_zToEta))
def fmt_zToEta(x, pos=None):
return transformed_label
I also remember starting with this redshift example; -)
, SubPlotHost , 100%, () , , .
: . fooobar.com/questions/114536/...