In 2d plots, dots and oblique lines are nicely antialiased but seem to be consistently misplaced by about 1 pixel.
Is this a problem with sage, matplotlib, aag, ...? See the example below, where the dots are about 1 pixel to the left of where they should be, and the diagonal lines are likewise off by about 1 pixel. http://orange.math.buffalo.edu/temp/1pixeloff_magnified.png http://orange.math.buffalo.edu/temp/1pixeloff.png g=0 bars = [] bars.append( line( [ ( 0,0 ), ( 2,2 ) ] , rgbcolor=(1,g,g), zorder=0) ) bars.append( line( [ ( 0,2 ), ( 2,0 ) ] , rgbcolor=(1,g,g), zorder=0) ) bars.append( line( [ ( 0,1 ), ( 2,1 ) ] , rgbcolor=(g,g,g), zorder=0) ) bars.append( line( [ ( 1,0 ), ( 1,2 ) ] , rgbcolor=(g,g,g), zorder=0) ) bars.append( line( [ ( 0,2 ), ( 2,2 ) ] , rgbcolor=(g,g,g), zorder=0) ) bars.append( line( [ ( 2,2 ), ( 2,0 ) ] , rgbcolor=(g,g,g), zorder=0) ) data = [ (0,0), (1,1), (2,2), (0,2), (2,0)] p = points(data ,rgbcolor=(0,0,1),pointsize=10,zorder=1 ) + sum ( bars ) p.save('1pixeloff.png',aspect_ratio=1) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---