Module Import alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword Str Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num BinOpMult SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Index AttributeLoad NameLoad attr Slice SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num BinOpMult SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str TupleLoad Num Num Num Num orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num keyword Str Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ExtSlice Index AttributeLoad NameLoad attr Slice Assign NameStore Call AttributeLoad NameLoad attr TupleLoad BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Return TupleLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Ellipsis Index NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Ellipsis Index NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str ExtSlice Ellipsis Index AttributeLoad NameLoad attr Assign NameStore BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr If CompareGt SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad Assign AttributeStore NameLoad attr BinOpMod BinOpAdd AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad AugAssignAdd AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A numpy np visual Visual N/A gloo ScrollingLinesVisual N/A Visual N/A N/A Displays many line strips of equal length, with the option to add new
    vertex data to one end of the lines.

    Parameters
    ----------
    n_lines : int
        The number of independent line strips to draw.
    line_size : int
        The number of samples in each line strip.
    dx : float
        The x distance between samples
    color : array-like
        An array of colors to assign to each line strip.
    pos_offset : array-like
        An array of x, y position offsets to apply to each line strip.
    columns : int
        Arrange line strips into a grid with this number of columns. This
        option is not compatible with *pos_offset*.
    cell_size : tuple
        The x, y distance between cells in the grid.
     N/A vertex_code 
    attribute vec2 index;  // .x=line_n, .y=vertex_n
    uniform sampler2D position;
    uniform sampler1D pos_offset;
    uniform sampler1D color_tex;
    
    uniform vec2 pos_size;  // x=n_lines, y=n_verts_per_line
    uniform float offset;  // rolling pointer into vertexes
    uniform float dx;  // x step per sample
    
    varying vec2 v_index;
    varying vec4 v_color;
    
    
    void main() {
        v_index = vec2(mod(index.y + offset, pos_size.y), index.x);
        vec2 uv = (v_index + 0.5) / (pos_size.yx);
        vec4 pos = vec4(index.y * dx, texture2D(position, uv).r, 0, 1);
        
        // fetch starting position from texture lookup:
        pos += vec4(texture1D(pos_offset, (index.x + 0.5) / pos_size.x).rg,
                              0, 0); 
        
        gl_Position = $transform(pos);
        
        v_color = texture1D(color_tex, (index.x + 0.5) / pos_size.x);
    }
     N/A fragment_code 
    varying vec2 v_index;
    varying vec4 v_color;
    
    void main() {
        if (v_index.y - floor(v_index.y) > 0) {
            discard;
        }
        gl_FragColor = $color;
    }
     __init__ N/A N/A self n_lines line_size dx color pos_offset columns cell_size N/A None None None None N/A N/A N/A self _pos_data None N/A N/A self _offset 0 N/A N/A self _dx dx N/A data N/A N/A np zeros N/A n_lines line_size dtype float32 N/A N/A self _pos_tex N/A N/A gloo Texture2D data format luminance internalformat r32f N/A N/A self _index_buf N/A N/A gloo VertexBuffer N/A N/A self _data_shape N/A data shape N/A N/A N/A Visual __init__ self vcode N/A self vertex_code fcode N/A self fragment_code N/A N/A N/A self shared_program N/A position N/A self _pos_tex N/A N/A N/A self shared_program N/A index N/A self _index_buf N/A N/A N/A self shared_program N/A dx dx N/A N/A N/A self shared_program N/A pos_size N/A data shape N/A N/A N/A self shared_program N/A offset N/A self _offset N/A N/A pos_offset None N/A N/A rows N/A N/A np ceil N/A n_lines columns N/A pos_offset N/A N/A np empty N/A rows columns 3 dtype float32 N/A N/A pos_offset N/A N/A N/A 0 N/A N/A N/A N/A np arange columns N/A N/A N/A np newaxis N/A N/A cell_size N/A 0 N/A N/A pos_offset N/A N/A N/A 1 N/A N/A N/A N/A np arange rows N/A N/A N/A N/A np newaxis N/A cell_size N/A 1 N/A pos_offset N/A N/A pos_offset reshape N/A rows columns 3 N/A N/A self _pos_offset N/A N/A gloo Texture1D pos_offset internalformat rgb32f interpolation nearest N/A N/A N/A self shared_program N/A pos_offset N/A self _pos_offset N/A N/A color None N/A N/A N/A N/A N/A self shared_program frag N/A color N/A 1 1 1 1 N/A N/A N/A self _color_tex N/A N/A gloo Texture1D color N/A N/A N/A self shared_program N/A color_tex N/A self _color_tex N/A N/A N/A N/A self shared_program frag N/A color v_color N/A index N/A N/A np empty N/A N/A N/A data shape N/A 0 N/A N/A data shape N/A 1 2 dtype float32 N/A N/A index N/A N/A N/A 0 N/A N/A N/A np arange N/A N/A data shape N/A 0 N/A N/A N/A N/A np newaxis N/A N/A index N/A N/A N/A 1 N/A N/A N/A np arange N/A N/A data shape N/A 1 N/A N/A N/A np newaxis N/A N/A index N/A N/A index reshape N/A N/A N/A N/A index shape N/A 0 N/A N/A index shape N/A 1 N/A N/A index shape N/A 2 N/A N/A N/A N/A self _index_buf set_data index N/A N/A self _draw_mode line_strip N/A N/A N/A self set_gl_state translucent line_width 1 N/A N/A N/A self freeze N/A set_pos_offset N/A N/A self po N/A N/A N/A Set the array of position offsets for each line strip.
        
        Parameters
        ----------
        po : array-like
            An array of xy offset values.
         N/A N/A N/A N/A self _pos_offset set_data po N/A set_color N/A N/A self color N/A N/A N/A Set the array of colors for each line strip.
        
        Parameters
        ----------
        color : array-like
            An array of rgba values.
         N/A N/A N/A N/A self _color_tex set_data color N/A _prepare_transforms N/A N/A self view N/A N/A N/A N/A N/A N/A view view_program vert N/A transform N/A N/A N/A view get_transform simplified N/A _prepare_draw N/A N/A self view N/A N/A N/A N/A _compute_bounds N/A N/A self axis view N/A N/A N/A N/A N/A self _pos_data None N/A N/A None N/A N/A N/A N/A N/A N/A self _pos_data N/A N/A N/A axis min N/A N/A N/A N/A self pos_data N/A N/A N/A axis max N/A roll_data N/A N/A self data N/A N/A N/A Append new data to the right side of every line strip and remove
        as much data from the left.
        
        Parameters
        ----------
        data : array-like
            A data array to append.
         N/A data N/A N/A N/A data astype float32 N/A N/A N/A N/A np newaxis N/A s1 N/A N/A N/A self _data_shape N/A 1 N/A self _offset N/A N/A N/A N/A data shape N/A 1 s1 N/A N/A N/A N/A self _pos_tex N/A N/A N/A N/A self _offset N/A data N/A N/A N/A s1 N/A N/A N/A self _pos_tex N/A N/A N/A N/A N/A N/A data shape N/A 1 s1 N/A data N/A N/A N/A s1 N/A N/A self _offset N/A N/A N/A self _offset N/A N/A data shape N/A 1 N/A N/A self _data_shape N/A 1 N/A N/A N/A N/A self _pos_tex N/A N/A N/A N/A self _offset N/A N/A self _offset N/A N/A data shape N/A 1 data N/A N/A self _offset N/A N/A data shape N/A 1 N/A N/A N/A self shared_program N/A offset N/A self _offset N/A N/A N/A self update N/A set_data N/A N/A self index data N/A N/A N/A Set the complete data for a single line strip.
        
        Parameters
        ----------
        index : int
            The index of the line strip to be replaced.
        data : array-like
            The data to assign to the selected line strip.
         N/A N/A N/A self _pos_tex N/A N/A index N/A data N/A N/A N/A self update N/A N/A