5.1.2 Manipulating the Time Scale Display: Rows


Code

class Example(gantt.Standard):
    data = acso
    show_now = False
    show_scale = True
    show_grid = False
    time_axis_properties = \
        { "tickers" : (2,) }

Result

\includegraphics[width=\textwidth]{gencustomize/timeaxis2}

Description

The special style group tickers specify which rows will be displayed in the scale. For every row exists an associated "locator" , which detmines the data, that will be displayed in the row. The following locators exist: DecadeLocator, YearLocator, QuaterLocator, MonthLocator, WeekLocator, DayLocator, SlotLocator. In the bottom row the time scale always displays the locator with the smallest possible unit. In our example this is the DayLocator. "tickers" : (2,) means that the next row above the bottom row, will display the locator which is 2 steps higher than the bottom locator. In our example this is the MonthLocator. If you specify "tickers" : (2, 1), there will be three rows: The first row displays the weeks, the second row displays the months and the third row displays the days.