# How to create a custom circle plot with arrow and a perpendicular sign for certain point?

**URL:** https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867
**Category:** General Usage
**Created:** [June 16, 2022, 9:07am UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867 "2022-06-16T09:07:44Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 16, 2022, 9:07am UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/1 "2022-06-16T09:07:44Z")

</div>

Hi all,

I want to create an arrow that can show how many radians a certain point has been rotated, another one is a perpendicular sign from right side triangle, I do not know how to create that symbol in Julia.

Picture attached.

![CNX_Precalc_Figure_05_02_00221](https://global.discourse-cdn.com/julialang/original/3X/6/1/615bfbad06848c21838aa39c3ddc163d5808a9df.jpeg)

 ![trig2_2](https://global.discourse-cdn.com/julialang/original/3X/0/8/083d31ca2fbc73c431f98701eccf21e403764800.png)

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 16, 2022, 9:23am UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/2 "2022-06-16T09:23:35Z")

</div>

For the custom circle plot with arrow I already find the solution, just the perpendicular sign now:

```julia
plot!(Plots.partialcircle(0,1//4*pi,100,0.1), arrow=true)

```

 ![Capture d’écran_2022-06-16_16-21-37](https://global.discourse-cdn.com/julialang/original/3X/0/c/0c816026d93678c1414d2ef8f49de2d2fa7ef601.png)

---

<div class="post-metadata">

### Author: ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)
#### Post date: [June 16, 2022, 11:34am UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/3 "2022-06-16T11:34:53Z")

</div>

You can try one of these

```julia
help?> ⦜
"⦜" can be typed by \Angle<tab>

help?> ⦝
"⦝" can be typed by \rightanglemdot<tab>

```

Don’t know if pyplot supports unicode annotations though

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 16, 2022, 1:44pm UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/4 "2022-06-16T13:44:33Z")

</div>

Thanks, but I am using \ulcorner since Pyplot does not support neither \Angle nor \rightanglemdot.

 ![Capture d’écran_2022-06-16_20-43-40](https://global.discourse-cdn.com/julialang/original/3X/a/6/a6a7beb157194ab7623c0d80fe8d07f237a7e9db.png)

---

<div class="post-metadata">

### Author: ![LeePhillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leephillips/32/205514_2.png) [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)
#### Post date: [June 16, 2022, 3:56pm UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/5 "2022-06-16T15:56:34Z")

</div>

For these kinds of diagrams Luxor.jl is probably easier to use than Plots (in case you were unaware of that package).

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [June 16, 2022, 4:46pm UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/6 "2022-06-16T16:46:11Z")

</div>

I think that’s an interesting alternative, but one of the issues arising would be the dichotomy between “maths mode” graphics and “computer graphics mode” graphics. Plots.jl enables “maths mode” (origin at the centre, y-axis up the page, unit circle fills the screen, etc), whereas Luxor imposes “computer graphics mode”: a 1-unit circle drawn in Luxor would draw a tiny pixel-or-two at the top left of the screen, and moving 5 units in y would move that pixel-or-two down the screen by 5 pixels or so. In other words, it would be necessary to “convert” the maths mode coordinates and conventions to computer graphics mode screen/PDF/PNG coordinates at some point. It’s simple enough, but requires a bit of extra work…

It’s possible to make maths-style diagrams like this of course. Here’s one I did in Luxor a few years ago:

[https://i.imgur.com/aPxloQq.gif(image larger than 4 MB)](https://i.imgur.com/aPxloQq.gif)

---

<div class="post-metadata">

### Author: ![LeePhillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leephillips/32/205514_2.png) [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)
#### Post date: [June 16, 2022, 4:59pm UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/7 "2022-06-16T16:59:42Z")

</div>

Cool animation.

Good point about having to translate to a different type of coordinate system. But Luxor is easier for mathematical diagrams in other ways; for example, you can shift the origin around, which simplifies the construction of sub-diagrams within your diagram.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 17, 2022, 9:02am UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/8 "2022-06-17T09:02:34Z")

</div>

I am aware but never try it, thought that Plots and Pyplot is enough.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 17, 2022, 9:03am UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/9 "2022-06-17T09:03:42Z")

</div>

Wow that is really great simulation for Trigonometry + Pythagorean with circle…

I want to learn to create it. Any reference ? I have mathematics background and want to do higher learning in Mathematics and Physics.

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [June 17, 2022, 9:12am UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/10 "2022-06-17T09:12:01Z")

</div>

Cool! You’ll want to check out Javis.jl if you’re interested in animations.

Both Javis,jl and Luxor.jl have loads of documentation to help you get started.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [June 17, 2022, 1:28pm UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867/11 "2022-06-17T13:28:42Z")

</div>

That’s really a great package Javis.jl, I just check it out now. Thanks
