First page Back Continue Last page Overview Graphics

Subplots with gridspec, Part 2

axes_3 = pl.subplot(G[1:, -1])

pl.xticks(())

pl.yticks(())

pl.text(0.5, 0.5, 'Axes 3', ha='center', va='center', size=24, alpha=.5)

axes_4 = pl.subplot(G[-1, 0])

pl.xticks(())

pl.yticks(())

pl.text(0.5, 0.5, 'Axes 4', ha='center', va='center', size=24, alpha=.5)

axes_5 = pl.subplot(G[-1, -2])

pl.xticks(())

pl.yticks(())

pl.text(0.5, 0.5, 'Axes 5', ha='center', va='center', size=24, alpha=.5)

pl.tight_layout()

pl.show()