Skip to content

Commit

Permalink
clean up plot recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed May 25, 2019
1 parent 2ffea8c commit 67b0f9b
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 533 deletions.
10 changes: 7 additions & 3 deletions docs/src/lib/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The following functions work with general two-dimensional `LazySet`s, provided t

```@docs
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::LazySet{N}, ::N=N(1e-3)) where {N<:Real}
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::Vector{XN}, ::N=N(1e-3)) where {N<:Real, XN<:LazySet{N}}
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::AbstractVector{VN}, ::N=N(1e-3), ::Int=40) where {N<:Real, VN<:LazySet{N}}
```

### Set functions that override Base functions
Expand Down Expand Up @@ -121,6 +121,12 @@ constrained_dimensions(::AbstractPolyhedron)
linear_map(::AbstractMatrix{N}, ::AbstractPolyhedron{N}) where {N<:Real}
```

Plotting abstract polytohedra is not yet available:

```@docs
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::AbstractPolyhedron{N}, ::N=zero(N)) where {N<:Real}
```

### Polytope

A polytope is a bounded set with finitely many vertices (*V-representation*)
Expand All @@ -144,7 +150,6 @@ Plotting abstract polytopes is available too:

```@docs
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::AbstractPolytope{N}, ::N=zero(N)) where {N<:Real}
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::Vector{PN}, ::N=zero(N)) where {N<:Real, PN<:AbstractPolytope{N}}
```

#### Polygon
Expand Down Expand Up @@ -253,5 +258,4 @@ low(::AbstractSingleton{N}) where {N<:Real}
low(::AbstractSingleton{N}, ::Int) where {N<:Real}
linear_map(::AbstractMatrix{N}, ::AbstractSingleton{N}) where {N<:Real}
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::AbstractSingleton{N}, ::N=zero(N)) where {N<:Real}
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::Vector{SN}, ::N=zero(N)) where {N<:Real, SN<:AbstractSingleton{N}}
```
2 changes: 1 addition & 1 deletion docs/src/lib/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ use_precise_ρ
_line_search
_projection
linear_map(::AbstractMatrix{N}, ::Intersection{N}) where {N}
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::Intersection{N}, ::N=-one(N)) where {N<:Real}
RecipesBase.apply_recipe(::Dict{Symbol,Any}, ::Intersection{N}, ::N=-one(N), ::Int=40) where {N<:Real}
```

Inherited from [`LazySet`](@ref):
Expand Down
Loading

0 comments on commit 67b0f9b

Please sign in to comment.