Hi, I am trying to plot X axis with major ticks set at the beginning of the month and minor ticks set on day 15th of the month. I'd like to have tick lines and no tick labels for the major axis, and tick labels but no tick lines for minor axis.
Could somebody let me know what I am doing wrong? Thank You Code Snippet: # X axis major day1 = MonthLocator(range(1,13),bymonthday=1,interval=1) # every month day 1 ax.xaxis.set_major_locator(day1) ax.xaxis.set_major_formatter(ticker.NullFormatter()) ax.xaxis.grid(True,which='major') # X axis Minor months = MonthLocator(range(1,13),bymonthday=15, interval=1) # every month on day 15 monthsFmt = DateFormatter('%b') ax.xaxis.set_minor_locator(months) ax.xaxis.set_minor_formatter(monthsFmt) ax.xaxis.grid(False,which='minor') # X No tick lines for t in ax.xaxis.get_minor_ticks(): t.tick1On=False t.tick2On=False #t.gridOn=False #t.tick1line.set_markersize(0) #t.tick2line.set_markersize(0) #t.tick1line.set_markeredgewidth(0) #t.tick2line.set_markeredgewidth(0) ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users