Skip to content

Commit

Permalink
show off triangle_color
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Aug 7, 2023
1 parent bed9675 commit 23b0470
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/examples/plotting_functions/triplot.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

## Examples

A `triplot` generates a triangle mesh from an arbitrary set of points and shows
its wireframe. The input data can either be point based (like `scatter` or
`lines`) or a `Triangulation` from
[DelaunayTriangulation.jl](https://github.com/DanielVandH/DelaunayTriangulation.jl).
A `triplot` plots a triangle mesh generated from an arbitrary set of points. The
input data can either be point based (like `scatter` or `lines`) or a `Triangulation`
from [DelaunayTriangulation.jl](https://github.com/DanielVandH/DelaunayTriangulation.jl).

\begin{examplefigure}{svg = true}
```julia
Expand All @@ -19,7 +18,7 @@ using Random
Random.seed!(1234)

points = randn(Point2f, 50)
f, ax, tr = triplot(points, show_points = true)
f, ax, tr = triplot(points, show_points = true, triangle_color = :lightblue)

tri = triangulate(points)
ax, tr = triplot(f[1, 2], tri, show_points = true)
Expand Down

0 comments on commit 23b0470

Please sign in to comment.