Re: [Matplotlib-users] Can't turn-off ticks when sharing axis

2010-04-23 Thread Gökhan Sever
On Thu, Apr 22, 2010 at 7:38 PM, John Hunter wrote: > > The standard trick is to make the ticklabels on one axes invisible > > for label in ax.get_xticklabels(): >label.set_visible(False) > > > JDH > Thanks John, This answer seems familiar to me :) You have caught my intention correctly --n

Re: [Matplotlib-users] Can't turn-off ticks when sharing axis

2010-04-22 Thread John Hunter
On Apr 22, 2010, at 12:28 PM, Gökhan Sever wrote: > Hello, > > Consider my simple test case: > > import matplotlib.pyplot as plt > > fp = plt.figure() > ax1 = fp.add_subplot(4,1,1) > ax1.plot(range(10)) > ax2 = fp.add_subplot(4,1,2) > ax2.plot(range(10)) > ax1.xaxis.set_major_locator (plt.N

[Matplotlib-users] Can't turn-off ticks when sharing axis

2010-04-22 Thread Gökhan Sever
Hello, Consider my simple test case: import matplotlib.pyplot as plt fp = plt.figure() ax1 = fp.add_subplot(4,1,1) ax1.plot(range(10)) ax2 = fp.add_subplot(4,1,2) ax2.plot(range(10)) ax1.xaxis.set_major_locator (plt.NullLocator ()) ax3 = fp.add_subplot(4,1,3) ax3.plot(range(10)) # Can't turn of