Properties
Similar Topics
Statistics
Comments
16
Participants
3
Subscribers
3
Votes
1
Views
975
Share

Aligning text outside a variable number of equidistant points in a circle
Answered
Hi!
I'm trying to label equidistant points that partition a circle in a way that the labels are aligned with the points and outside the circle. But as the text anchor is always its left-bottom corner, the text in the right side of the circle stays on the outside as it should, but the text on the left side overlaps with the circle.
The number of points is variable (it depends on some operations involving the two sliders CI_{1} and C1_2{2}), so I can't just set a fixed position to the each text element.
Any ideas?
Files:
Inversion cycle...
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
try this:
R = Append(Sequence(Text(l1(i + 1), M2'(i) + (-1.1, 0)), i, 1, n), Text(l1(1), M2'(n) + (-1.1, 0)))
Maybe useful? https://www.geogebra.org/m/SDF4T9dy
Since Verion 5.0.601 resp. 6.0.601 the text command has an (undocumented ?) extension.
The last two parameters mean
Text(.......,<Xvalue{left=1,center=0, right=-1}>, <Yvalue{top=1,center=0, bottom=-1}>)
This can be used to automatically align a text() to a point.
See example (with rotated text)https://www.geogebra.org/m/dgqdfzme
Ok, so I was able to rotate the elements and they actually look pretty good. I still haven't configured the angle list so they don't flip completely, but that shouldn't be a problem. I've ran into another issue, though: when I first open the file, the text is center aligned with the points of the outer circle, as (I believe) they should be, however if I change the value of the sliders the alignment gets messed up (or so it seems to me). Even if I get the sliders back to the original value the center alignment is not regained.
Am I missing something here?
Comments have been locked on this page!