nested_grid_plotter.make_patch_spines_invisible#
- nested_grid_plotter.make_patch_spines_invisible(ax: Axes) None[source]#
Make patch and spines of the ax invisible.
Useful for creating a 2nd twin-x axis on the right/left.
- Parameters:
ax (Axes) – Axis to modify.
Examples
fig, ax=plt.subplots() ax.plot(x, y) tax1=ax.twinx() tax1.plot(x, y1) tax2=ax.twinx() tax2.spines[‘right’].set_position((‘axes’,1.09)) make_patch_spines_invisible(tax2) tax2.spines[‘right’].set_visible(True) tax2.plot(x, y2)
- Return type:
None