Module ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad Str Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore BinOpMult Num Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num TupleLoad NameLoad Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Num NameLoad BinOpMult Num NameLoad TupleLoad NameLoad Num attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num keyword TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr BinOpMult NameLoad TupleLoad Num Num NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A __future__ division N/A numpy np vispy app vispy.gloo VertexBuffer vispy.visuals Visual vispy.visuals.transforms STTransform MarkerVisual N/A Visual N/A N/A VERTEX_SHADER 
        #version 120

        attribute vec2 a_position;
        attribute vec3 a_color;
        attribute float a_size;

        varying vec4 v_fg_color;
        varying vec4 v_bg_color;
        varying float v_radius;
        varying float v_linewidth;
        varying float v_antialias;

        void main (void) {
            v_radius = a_size;
            v_linewidth = 1.0;
            v_antialias = 1.0;
            v_fg_color  = vec4(0.0,0.0,0.0,0.5);
            v_bg_color  = vec4(a_color,    1.0);

            gl_Position = $transform(vec4(a_position,0,1));

            gl_PointSize = 2.0*(v_radius + v_linewidth + 1.5*v_antialias);
        }
     N/A FRAGMENT_SHADER 
        #version 120
        varying vec4 v_fg_color;
        varying vec4 v_bg_color;
        varying float v_radius;
        varying float v_linewidth;
        varying float v_antialias;
        void main()
        {
            float size = 2.0*(v_radius + v_linewidth + 1.5*v_antialias);
            float t = v_linewidth/2.0-v_antialias;
            float r = length((gl_PointCoord.xy - vec2(0.5,0.5))*size);
            float d = abs(r - v_radius) - t;
            if( d < 0.0 )
                gl_FragColor = v_fg_color;
            else
            {
                float alpha = d/v_antialias;
                alpha = exp(-alpha*alpha);
                if (r > v_radius)
                    gl_FragColor = vec4(v_fg_color.rgb, alpha*v_fg_color.a);
                else
                    gl_FragColor = mix(v_bg_color, v_fg_color, alpha);
            }
        }
     __init__ N/A N/A self pos color size N/A None None None N/A N/A N/A N/A Visual __init__ self N/A self VERTEX_SHADER N/A self FRAGMENT_SHADER N/A N/A self _pos pos N/A N/A self _color color N/A N/A self _size size N/A N/A N/A self set_gl_state blend True blend_func N/A src_alpha one_minus_src_alpha N/A N/A self _draw_mode points N/A _prepare_transforms N/A N/A self view N/A None N/A N/A N/A N/A N/A view view_program vert N/A transform N/A N/A N/A view transforms get_transform N/A _prepare_draw N/A N/A self view N/A N/A N/A N/A N/A self shared_program N/A a_position N/A VertexBuffer N/A self _pos N/A N/A N/A self shared_program N/A a_color N/A VertexBuffer N/A self _color N/A N/A N/A self shared_program N/A a_size N/A VertexBuffer N/A self _size N/A N/A Canvas N/A N/A app Canvas N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A app Canvas __init__ self keys interactive N/A ps N/A self pixel_scale N/A n 10000 N/A pos N/A 0.25 N/A N/A N/A N/A N/A np random randn n 2 astype N/A np float32 N/A color N/A N/A N/A N/A N/A np random uniform 0 1 N/A n 3 astype N/A np float32 N/A size N/A N/A N/A N/A N/A np random uniform N/A 2 ps N/A 12 ps N/A n 1 astype N/A np float32 N/A N/A self points N/A MarkerVisual pos pos color color size size N/A N/A w h N/A self size N/A N/A N/A self points transform N/A STTransform scale N/A N/A w 2.0 N/A h 2.0 translate N/A N/A w 2.0 N/A h 2.0 N/A on_mouse_move N/A N/A self event N/A N/A N/A N/A event is_dragging N/A N/A dxy N/A N/A event pos N/A N/A event last_event pos N/A button N/A N/A event press_event button N/A N/A button 1 N/A N/A N/A N/A N/A N/A self points transform move dxy N/A N/A N/A button 2 N/A N/A center N/A N/A event press_event pos N/A N/A N/A N/A N/A self points transform zoom N/A N/A np exp N/A dxy N/A 0.01 -0.01 center N/A N/A N/A self update N/A on_resize N/A N/A self event N/A N/A N/A vp N/A 0 0 N/A N/A self physical_size N/A 0 N/A N/A self physical_size N/A 1 N/A N/A N/A N/A self context set_viewport vp N/A N/A N/A N/A N/A self points transforms configure canvas self viewport vp N/A on_draw N/A N/A self event N/A N/A N/A N/A N/A N/A self context clear white N/A N/A N/A N/A self points draw N/A N/A N/A N/A __name__ __main__ N/A N/A c N/A Canvas N/A N/A N/A c show N/A N/A N/A app run