On Thu, Nov 12, 2009 at 12:07 PM, per freem <perfr...@gmail.com> wrote: > ax.axis["xzero"].set_visible(True) > # make other axis (bottom, top, right) invisible.
The ax.axis["xzero"] is drawn along the y=0 line. Therefore, if you use logscale, this axis become invisible. > invisible = ["bottom", "top", "right"] > for n in invisible: > ax.axis[n].set_visible(False) > Is there any reason that you have to use SubplotZero? If you intend to use it, you need to place the "xzero" axes not at y=0, but at some meaningful location. However, I think you're good without SubplotZero. Just use Subplot, but do not make "bottom" axis invisible (see the example below). On the other hand, I recommend you to consider using spines instead of axes_grid toolkits. http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html Regards, -JJ from mpl_toolkits.axes_grid.axislines import Subplot fig = plt.figure(figsize=(5, 5), dpi=100) ax = Subplot(fig, 1, 1, 1) ax = fig.add_subplot(ax) x = range(1, 11) y = [5000, 900, 600, 500, 200, 110, 50, 20, 10, 5] plt.plot(x, y, linewidth=1.5, c='k') ax = plt.gca() ax.set_yscale('log') invisible = ["top", "right"] for n in invisible: ax.axis[n].set_visible(False) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users