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

Plotting empty Shape gives DivideError #1329

Closed
goretkin opened this issue Dec 18, 2017 · 0 comments
Closed

Plotting empty Shape gives DivideError #1329

goretkin opened this issue Dec 18, 2017 · 0 comments
Labels

Comments

@goretkin
Copy link
Contributor

This happens under the Plotly backend too. Maybe the behavior could be a no-op, or maybe add an empty series, I'm not sure.

julia> plot(Shape([],[]))
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: DivideError: integer division error
Stacktrace:
 [1] fld at ./int.jl:191 [inlined]
 [2] mod at ./int.jl:171 [inlined]
 [3] mod1 at ./operators.jl:649 [inlined]
 [4] _cycle(::Array{Float64,1}, ::Int64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants