Here are the docs: http://matplotlib.org/api/ticker_api.html . A tick formatter will automatically map ordinal value -> category label. Additionally, a locator might be useful to explicitly label all categories if there aren't that many