Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot() container not working? #243

Closed
my-little-repository opened this issue Sep 25, 2015 · 4 comments
Closed

Plot() container not working? #243

my-little-repository opened this issue Sep 25, 2015 · 4 comments

Comments

@my-little-repository
Copy link
Contributor

I am trying to use the Plot() container, as advertised on the wiki, but I get an error.

julia> let p = Plot(), x=linspace(-2pi,2pi,100)
           add(p, Curve(x, sin(x)))
           Winston.display(p) 
       end
ERROR: MethodError: `limits` has no method matching limits(::Winston.Plot)
Closest candidates are:
  limits(::Winston.Plot, !Matched::Graphics.BoundingBox)
  limits(::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any)
 in compose_interior at /home/yves/.julia/v0.4/Winston/src/Winston.jl:1447
 in page_compose at /home/yves/.julia/v0.4/Winston/src/Winston.jl:1848
 in page_compose at /home/yves/.julia/v0.4/Winston/src/Winston.jl:1836
 in anonymous at /home/yves/.julia/v0.4/Winston/src/tk.jl:27
 in display at /home/yves/.julia/v0.4/Winston/src/tk.jl:35
 in display at /home/yves/.julia/v0.4/Winston/src/Winston.jl:2855
 [inlined code] from multimedia.jl:151

What am I doing wrong?

@mvkma
Copy link
Collaborator

mvkma commented Oct 16, 2015

Try using FramedPlot() instead of Plot().

@my-little-repository
Copy link
Contributor Author

I don't want a framed plot. I want a plot without a frame. From the doc, it seems that Plot() is the way to go.

@mvkma
Copy link
Collaborator

mvkma commented Oct 17, 2015

Okay, I'm sorry. Can you try, if bd3c9af works for you?

@my-little-repository
Copy link
Contributor Author

@slangangular Yes, it works, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants