Open hooyuser opened 2 months ago
F = FareySymbol(Gamma(Integer(6))).fundamental_domain(ymax=2, thickness=0.1) F.set_aspect_ratio(1) F.save("test.pdf")
test.pdf
The thickness of line for both hyperbolic_triangle and hyperbolic_arc are set to 0.1.
hyperbolic_triangle
hyperbolic_arc
Only the thickness of line for hyperbolic_arc are set to 0.1. See the image below.
c.f. https://github.com/sagemath/sage/blob/develop/src/sage/modular/arithgroup/farey_symbol.pyx#L900 According to the source code, g.set_aspect_ratio(1) means aspect ratio should be set to 1 by default. However, I found print(F.aspect_ratio()) gives result automatic. And I have to set it manually by F.set_aspect_ratio(1) to get the correct aspect ratio.
g.set_aspect_ratio(1)
print(F.aspect_ratio())
automatic
F.set_aspect_ratio(1)
Would it help to add the keyword argument thickness=options['thickness'] to these lines?
thickness=options['thickness']
Steps To Reproduce
test.pdf
Expected Behavior
The thickness of line for both
hyperbolic_triangle
andhyperbolic_arc
are set to 0.1.Actual Behavior
Only the thickness of line for
hyperbolic_arc
are set to 0.1. See the image below.Additional Information
c.f. https://github.com/sagemath/sage/blob/develop/src/sage/modular/arithgroup/farey_symbol.pyx#L900 According to the source code,
g.set_aspect_ratio(1)
means aspect ratio should be set to 1 by default. However, I foundprint(F.aspect_ratio())
gives resultautomatic
. And I have to set it manually byF.set_aspect_ratio(1)
to get the correct aspect ratio.Environment
Checklist