matplotlib

This Page

axes_grid example code: simple_axisline3.pyΒΆ

[source code, hires.png, pdf]

../../_images/simple_axisline3.png
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.axislines import Subplot

fig = plt.figure(1, (3,3))

ax = Subplot(fig, 111)
fig.add_subplot(ax)

ax.axis["right"].set_visible(False)
ax.axis["top"].set_visible(False)

plt.show()

Keywords: python, matplotlib, pylab, example, codex (see Search examples)