FAQ
Hi everybody,
I've got a problem concerning matplotlib/pylab. I use it to represent
curves. I will use these pictures in a report.
However, it writes me a string 'date' on the bottom of my x-axis.

I use this to produce my date axis (x-axis):

mondays = WeekdayLocator(MONDAY) # every monday
months = MonthLocator(range(1,13), bymonthday=1)
# every month
monthsFmt = DateFormatter("%b %d '%y")
years = YearLocator() # every month
yearsFmt = DateFormatter("%y")
# subplot.xaxis.set_major_locator(months)
# subplot.xaxis.set_major_formatter(monthsFmt)
# subplot.xaxis.set_minor_locator(mondays)
subplot.xaxis.set_major_locator(years)
subplot.xaxis.set_major_formatter(yearsFmt)

#subplot.autoscale_view()
setp(subplot.get_xticklabels(), 'rotation', 45, fontsize)


Can you help me to remove this 'date'?
thank you!

Fr?d?ric

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedMar 26, '08 at 10:55a
activeMar 26, '08 at 10:55a
posts1
users1
websitepython.org

1 user in discussion

Frédéric Degraeve: 1 post

People

Translate

site design / logo © 2023 Grokbase