the set_visible method of the axis object should do the trick:
ax1.get_xaxis().set_visible(False)
same for ax2.
bernhard
On Thu, Mar 13, 2008 at 5:01 PM, Marcus Hauser <
[EMAIL PROTECTED]> wrote:
> Dear all,
>
> is it possible to use a shared xaxis for several plots and switch off
> the xticklabels on all but the lowest plot?
>
> When I use ax.set_xticklabels([]) on one of the shared xaxis, the
> ticklabels on all xaxis vanishes...???
>
> Example:
> ax0 = pylab.axes( [0.1, 0.05, 0.88, 0.22] )
> plot...
> ax1 = pylab.axes( [0.1, 0.27, 0.88, 0.22], sharex = ax0)
> plot...
> ax2 = pylab.axes( [0.1, 0.49, 0.88, 0.22], sharex = ax0)
> ax2.set_xticklabels([])
> plot...
>
>
> The result is that neither ax0 nor ax1 have any xticklabes shown.
>
> I am using matplotlib 0.87 on Debian Etch.
>
>
> Regards,
> Marcus
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users