5.1.3 Manipulating the Time Scale Display: Styles


Code

class Example(gantt.Standard):
    data = acso
    show_now = False
    show_scale = True
    show_grid = False
    time_axis_properties = \
        { "0.facecolor" : "lightgrey",
          "1.facecolor" : "black",
          "1.color" : "white",
          "1.edgecolor" : "white",
          "2.facecolor" : "white",
          "2.family" : "serif",
          "2.size" : "xx-large",
          "tickers" : (1, 2) }

Result

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

Description

The style groups "0", "1", "2", etc. specify the appearance of the rows in the time scale.