# HG changeset patch
# User Jason Grout
# Date 1276282284 18000
# Node ID bfde5d0334aa9f69ce1b53ed793143f3d6b86b68
# Parent e545bf6aa125a9bc986d7e3f4f2f014d4bef4f27
#7808: Make the axes go exactly through the origin, instead of the default rounding to the nearest pixel of horizontal/vertical lines.
diff -r e545bf6aa125 -r bfde5d0334aa sage/plot/plot.py
--- a/sage/plot/plot.py Fri Jun 11 02:16:27 2010 -0500
+++ b/sage/plot/plot.py Fri Jun 11 13:51:24 2010 -0500
@@ -1661,6 +1661,19 @@
for spine in subplot.spines.values():
spine.set_color(self.__axes_color)
spine.set_linewidth(self.__axes_width)
+
+ # Uncomment the following line if you want the axes to go
+ # exactly through the origin (but drawing another
+ # horizontal/vertical line through the origin may not!)
+
+ spine.set_snap(False)
+
+
+ # Uncomment the following line if you are okay with
+ # "fuzzy" axes, but then there won't be a huge glaring
+ # difference between the axes widths sometimes.
+
+ # spine.set_antialiased(False)
if frame: