Commits (2)
......@@ -1057,6 +1057,12 @@ class IntegralRayCollection(SageObject, Hashable, Iterable):
sage: quadrant = Cone([(1,0), (0,1)])
sage: quadrant.plot()
Graphics object consisting of 9 graphics primitives
Let's plot a halfplane. See :trac:`25114`.
sage: halfplane = Cone([(1,0), (0,1), (-1,0)])
sage: halfplane.plot()
Graphics object consisting of 12 graphics primitives
"""
tp = ToricPlotter(options, self.lattice().degree(), self.rays())
return tp.plot_lattice() + tp.plot_rays() + tp.plot_generators()
......
......@@ -649,7 +649,7 @@ class ToricPlotter(SageObject):
if lsd == 0: # Strictly convex wall
r1, r2 = (rays[i] for i in wall.ambient_ray_indices())
elif lsd == 1: # wall is a half-plane
for i, ray in zip(wall.ambient_ray_indices(), wall.rays()):
for i, ray in zip(wall.ambient_ray_indices(), wall.rays().matrix()):
if ray in S:
r1 = rays[i]
else:
......