# Glvisualize view method being overwritten

**URL:** <https://discourse.julialang.org/t/glvisualize-view-method-being-overwritten/2324>\
**Category:** Visualization\
**Created:** [February 26, 2017, 9:50pm UTC](https://discourse.julialang.org/t/glvisualize-view-method-being-overwritten/2324 "2017-02-26T21:50:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [February 26, 2017, 9:50pm UTC](https://discourse.julialang.org/t/glvisualize-view-method-being-overwritten/2324/1 "2017-02-26T21:50:44Z")

</div>

Installation of the package went smoothly, so I think that it’s installed correctly.  
I tried running the sinfun example, using include(“sinfun.jl”) while in the repl, for glvisualize and it get the following error:

```julia
WARNING: imported binding for scale overwritten in module Main
ERROR: LoadError: MethodError: no method matching view(::GLAbstraction.Context{GLAbstraction.DeviceUnit}, ::GLWindow.Screen)

```

Strangely when I look for view in the documentation I can’t seem to find it. I then tried the Linesegments3D example and got an error that view does not accept keywords.  
Are the examples just out of date ?

Any help appreciated.

Here’s the actual code, which comes from the glvisualize documentation:

* * *

```nohighlight

window = glscreen()
timesignal = bounce(linspace(0f0,1f0,360))

t = const_lift(*, timesignal, 20pi)
n = 50
const yrange = linspace(0.03, 0.3, n)
trange = linspace(0, 10pi, 200)

function gen_points(timesignal, y)
    x = sin(timesignal+(y*60*pi*y)+y)*y*5
    z = cos((timesignal+pi)+(y*60*pi*y)+y)*y*5
    Point3f0(x,y*60f0,z)
end
function gen_points(timesignal)
    Point3f0[gen_points(timesignal, y) for y in yrange]
end

positions = map(gen_points, t)
scale = map(Vec3f0, linspace(0.05, 0.6, n))
primitive = centered(Sphere)
color = map(RGB{Float32}, colormap("RdBu", n))
points = visualize((primitive, positions), scale=scale, color=color)

view(points, window)

renderloop(window)

```

---

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [February 26, 2017, 10:49pm UTC](https://discourse.julialang.org/t/glvisualize-view-method-being-overwritten/2324/2 "2017-02-26T22:49:12Z")

</div>

Good grief.

view has been replaced by \_view.

Found it in the git issues list, under “minor” bug.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [February 26, 2017, 10:53pm UTC](https://discourse.julialang.org/t/glvisualize-view-method-being-overwritten/2324/3 "2017-02-26T22:53:47Z")

</div>

I’m sorry about that! I should really update that website!

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [February 27, 2017, 12:40pm UTC](https://discourse.julialang.org/t/glvisualize-view-method-being-overwritten/2324/4 "2017-02-27T12:40:15Z")

</div>

I bet Simon would appreciate a documentation pull request. A developer like Simon, with many packages and a big agenda, sometimes has a hard time keeping everything in sync without a little help; outside eyes can more easily spot problems.

---

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [March 3, 2017, 4:08am UTC](https://discourse.julialang.org/t/glvisualize-view-method-being-overwritten/2324/5 "2017-03-03T04:08:47Z")

</div>

I would be happy to, but first I’ll have to learn what a pull request is and how to do it.  
I need to learn because I’d really like to contribute to the DSP package.  
I’ve been using git, but i’m still a git noob for the most part.
