flatsurf / sage-flatsurf

Flat surfaces in Sage
https://flatsurf.github.io/sage-flatsurf/
GNU General Public License v2.0
10 stars 10 forks source link

plot of SimilaritySurfaceTangentVector not at correct place #284

Open videlec opened 7 months ago

videlec commented 7 months ago

There is no option in SimilaritySurfaceTangentVector.plot to make the plot of a tangent vector on the given layout of a similarity surface. Currently, everything is centered with respect to the underlying polygon data.

from flatsurf import translation_surfaces
M = translation_surfaces.arnoux_yoccoz(3)
p = M.polygon(11)
v = M.tangent_vector(11, sum(p.vertices()) / 3, (1/8, 0))
M.plot() + v.plot(color='red')

It works fine for straight line trajectories though

M.plot() + v.straight_line_trajectory().plot(color='red')