# Triangulation plot triangle plot

**URL:** <https://discourse.julialang.org/t/triangulation-plot-triangle-plot/41665>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [June 18, 2020, 10:19am UTC](https://discourse.julialang.org/t/triangulation-plot-triangle-plot/41665 "2020-06-18T10:19:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyacykcharel](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@hyacykcharel](https://discourse.julialang.org/u/hyacykcharel)\
**Post date:** [June 18, 2020, 10:19am UTC](https://discourse.julialang.org/t/triangulation-plot-triangle-plot/41665/1 "2020-06-18T10:19:56Z")

</div>

Im trying to create a triangulation (triangle Plot) plot and dont even know how to do ist can someone help please?  
using VoronoiDelaunay  
using GeometricalPredicates  
using DataFrames, Plots  
pyplot()

#mit unterer Aussenlinie initialisieren  
x = collect(-1:0.1:1)

y = -1\*ones(size(x))

#obere Aussenlinie hinzufuegen  
xtemp = collect(-1:0.1:1)  
ytemp = 1\*ones(size(x))

x = [x’ xtemp’]  
y = [y’ ytemp’]

#rechte Aussenlinie hinzufuegen  
ytemp = collect(-1:0.1:1)  
xtemp = 1\*ones(size(ytemp))

x = [x xtemp’]  
y = [y ytemp’]

#linke Aussenlinie hinzufuegen  
ytemp = collect(-1:0.1:1)  
xtemp = -1\*ones(size(ytemp))

x = [x xtemp’]  
y = [y ytemp’]

#zufaellige Innenpunkte hinzufuegen  
xtemp = 2_rand(1,500)-ones(1,500)  
ytemp = 2_rand(1,500)-ones(1,500)

x = [x xtemp]  
y = [y ytemp]  
vec(x)  
vec(y)  
##Delaunay-Triangulierung hinzufuegen  
plot(tess) = DelaunayTessellation(x,y)  
##Triangulierung plotten

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [June 20, 2020, 5:40pm UTC](https://discourse.julialang.org/t/triangulation-plot-triangle-plot/41665/2 "2020-06-20T17:40:56Z")

</div>

Mit `x,y`, zur triangulierung kann mann auch `MiniQhull` und `Makie` benutzen.

```plaintext
using MiniQhull, Makie
p = [x;y]
t = delaunay(p)
scene = mesh(p',t')
wireframe!(scene[end][1], color = (:red, 0.6), linewidth = 3)

```

 ![Screenshot_2020-06-20_13-35-21](https://global.discourse-cdn.com/julialang/original/3X/6/7/67f795175e9f53ab4141a0f227c6a28d57887c1e.png)

---

<div class="post-metadata">

**Author:** ![hyacykcharel](https://avatars.discourse-cdn.com/v4/letter/h/58956e/32.png) [@hyacykcharel](https://discourse.julialang.org/u/hyacykcharel)\
**Post date:** [June 22, 2020, 6:01am UTC](https://discourse.julialang.org/t/triangulation-plot-triangle-plot/41665/3 "2020-06-22T06:01:52Z")

</div>

Thanks
