Exemplo n.º 1
0
    class figure(TConfig):
        figsize = T.List(T.Float, [8, 6], maxlen=2, minlen=2)
        dpi = T.Float(80)
        facecolor = T.Trait('0.75', mplT.ColorHandler())
        edgecolor = T.Trait('white', mplT.ColorHandler())

        class subplot(TConfig):
            """The figure subplot parameters.  All dimensions are fraction
            of the figure width or height"""
            left = T.Float(0.125)
            right = T.Float(0.9)
            bottom = T.Float(0.1)
            top = T.Float(0.9)
            wspace = T.Float(0.2)
            hspace = T.Float(0.2)
Exemplo n.º 2
0
    class axes(TConfig):
        hold = T.Trait(True, mplT.BoolHandler())
        facecolor = T.Trait('white', mplT.ColorHandler())
        edgecolor = T.Trait('black', mplT.ColorHandler())
        linewidth = T.Float(1.0)
        grid = T.Trait(False, mplT.BoolHandler())
        polargrid = T.Trait(True, mplT.BoolHandler())
        titlesize = T.Trait('large', 'xx-small', 'x-small', 'small', 'medium',
                            'large', 'x-large', 'xx-large', T.Float)
        labelsize = T.Trait('medium', 'xx-small', 'x-small', 'small', 'medium',
                            'large', 'x-large', 'xx-large', T.Float)
        labelcolor = T.Trait('black', mplT.ColorHandler())
        axisbelow = T.false

        class formatter(TConfig):
            limits = T.List(T.Float, [-7, 7], minlen=2, maxlen=2)
Exemplo n.º 3
0
    class text(TConfig):
        color = T.Trait('black', mplT.ColorHandler())
        usetex = T.false

        class latex(TConfig):
            unicode = T.false
            preamble = T.ListStr([])
            dvipnghack = T.false
Exemplo n.º 4
0
    class yticks(TConfig):
        color = T.Trait('black', mplT.ColorHandler())
        labelsize = T.Trait('small', 'xx-small', 'x-small', 'small', 'medium',
                            'large', 'x-large', 'xx-large', T.Float)
        direction = T.Trait('in', 'out')

        class major(TConfig):
            size = T.Float(4)
            pad = T.Float(4)

        class minor(TConfig):
            size = T.Float(2)
            pad = T.Float(4)
Exemplo n.º 5
0
 class lines(TConfig):
     linewidth = T.Float(1.0)
     linestyle = T.Trait('-', '--', '-.', ':', 'steps', '', ' ', None)
     color = T.Trait('blue', mplT.ColorHandler())
     solid_joinstyle = T.Trait('round', 'miter', 'round', 'bevel')
     solid_capstyle = T.Trait('butt', 'butt', 'round', 'projecting')
     dash_joinstyle = T.Trait('round', 'miter', 'round', 'bevel')
     dash_capstyle = T.Trait('butt', 'butt', 'round', 'projecting')
     marker = T.Trait('None', 'None', 'o', '.', ',', '^', 'v', '<', '>',
                      's', '+', 'x', 'D', 'd', '1', '2', '3', '4', 'h', 'H',
                      'p', '|', '_')
     markeredgewidth = T.Float(0.5)
     markersize = T.Float(6)
     antialiased = T.true
Exemplo n.º 6
0
 class savefig(TConfig):
     dpi = T.Float(100)
     facecolor = T.Trait('white', mplT.ColorHandler())
     edgecolor = T.Trait('white', mplT.ColorHandler())
     orientation = T.Trait('portrait', 'portrait', 'landscape')
Exemplo n.º 7
0
 class grid(TConfig):
     color = T.Trait('black', mplT.ColorHandler())
     linestyle = T.Trait(':', '-', '--', '-.', ':', 'steps', '', ' ')
     linewidth = T.Float(0.5)
Exemplo n.º 8
0
 class patch(TConfig):
     linewidth = T.Float(1.0)
     facecolor = T.Trait('blue', mplT.ColorHandler())
     edgecolor = T.Trait('black', mplT.ColorHandler())
     antialiased = T.true