JuliaPolyhedra / Polyhedra.jl

Polyhedral Computation Interface
Other
172 stars 27 forks source link

Plotting 2D empty polyhedron #161

Closed blegat closed 5 years ago

blegat commented 5 years ago
BoundsError: attempt to access 0-element Array{Array{Float64,1},1} at index [1]

Stacktrace:
 [1] getindex(::Array{Array{Float64,1},1}, ::Int64) at ./array.jl:731
 [2] planar_contour(::CDDLib.Polyhedron{Float64}) at /home/blegat/.julia/dev/Polyhedra/src/recipe.jl:52
 [3] apply_recipe(::Dict{Symbol,Any}, ::CDDLib.Polyhedron{Float64}) at /home/blegat/.julia/packages/RecipesBase/Uz5AO/src/RecipesBase.jl:275
 [4] _process_userrecipes(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{CDDLib.Polyhedron{Float64}}) at /home/blegat/.julia/packages/Plots/47Tik/src/pipeline.jl:83
 [5] _plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{CDDLib.Polyhedron{Float64}}) at /home/blegat/.julia/packages/Plots/47Tik/src/plot.jl:178
 [6] #plot#136(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::CDDLib.Polyhedron{Float64}) at /home/blegat/.julia/packages/Plots/47Tik/src/plot.jl:57
 [7] plot(::CDDLib.Polyhedron{Float64}) at /home/blegat/.julia/packages/Plots/47Tik/src/plot.jl:51
 [8] top-level scope at In[8]:2
blegat commented 5 years ago

Closed by https://github.com/JuliaPolyhedra/Polyhedra.jl/pull/164