There is not enough space on your screen to plot non-compact polyhedra, so what exactly do you expect as output? Right now, the compact part plus (minkowski sum) the interval (origin, ray generator) is drawn. I guess you expect the whole half plane clipped by the plot window? How big should the plot window be if you only give it the half plane?
On Tuesday, September 18, 2012 5:17:42 PM UTC+1, moritz wrote: > > The plot routine for polyhedra (and also the render_solid and the > render_wireframe method) seem to plot only part of the polyhedron. > > Take as an example > > q1=Polyhedron( vertices=[[0,0]], lines=[[-2,1]], rays=[[0,42]]) > q.plot() > > Here only the line [-2,1] and a strip of length 1 in direction [0,1] is > plotted. Even worse > q.plot(ymin=-3,ymax=3,xmin=-3,xmax=3) gives only part of the strip, which > could be contained in the image. > > As very simple example of this phenomenon is obtained by trying to plot a > half infinite ray: > > p=Polyhedron(rays=[[2,4]]) > p.plot(ymin=-3,ymax=3,xmin=-3,xmax=3) > > which plots nothing else than the vector (1,2). The same works is true for > lines. > > Is this intended behavior? Is there a way to plot half-infinite rays? If > not, should there be way to do that? > > One could asked the same questions for non-compact polyhedra in 3 > dimensional space. > > moritz > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.