<p dir="auto">See discussion here:<br>
<a href="http://stackoverflow.com/questions/16999586/matplotlib-wont-plot-line-of-same-x-values/17000144?noredirect=1#comment24658630_17000144" rel="nofollow">http://stackoverflow.com/questions/16999586/matplotlib-wont-plot-line-of-same-x-values/17000144?noredirect=1#comment24658630_17000144</a></p>
<p dir="auto">If a graph is generated with a single horizontal line, the line is not visible in Chrome, but it is in Illustrator and in Internet Explorer.</p>
<p dir="auto">As soon as the line stops being "straight" it becomes visible. This is not a reproduction of the vertical/horizontal issue with zoom/refresh.</p>
<p dir="auto">Perfectly horizontal or vertical lines do not show up in svgs on my machine. Could be an issue with my specific setup, I am curious if anyone else can reproduce the issue.</p>
<p dir="auto">Here is the code that causes the bug for me:</p>
<p dir="auto">import pylab as plt<br>
plt.plot([-1,1],[1,1]) #perfectly horizontal line does not render<br>
plt.savefig('/Users/Andrew/Desktop/plot.svg', format='svg')</p>
<p dir="auto">Here is a workaround I found:</p>
<p dir="auto">import pylab as plt<br>
plt.plot([-1,1],[1,1.001]) #not a perfectly horizontal line; renders<br>
plt.savefig('/Users/Andrew/Desktop/plot.svg', format='svg')</p>
<p dir="auto">My environment:<br>
Matplotlib 1.10 on Mac OS X 10.7 obtained from Enthought</p>