On 06/17/2010 07:35 AM, Ryan May wrote:
> On Thu, Jun 17, 2010 at 11:39 AM, Benjamin Root<ben...@ou...> wrote:
>> Try "ax.set_xticks([])", I think that works for 2D plots.
>
> Nope, labels disappear.
>
> Jeff, try this:
>
> ax.xaxis.set_ticks_position('none')
>
> Ryan
>
In [1]:plot([1,2])
Out[1]:[<matplotlib.lines.Line2D object at 0x3e11510>]
In [2]:ax = gca()
In [3]:for t in ax.xaxis.get_ticklines(): t.set_visible(False)
...:
In [4]:draw()
|