Permalink
Browse files

pep8 compliance

  • Loading branch information...
1 parent 269190e commit 0a909f9c9ae931c0316bb4ee3b634076f8992c95 Thomas A Caswell committed Jan 2, 2013
Showing with 11 additions and 12 deletions.
  1. +11 −12 lib/matplotlib/tests/test_axes.py
View
23 lib/matplotlib/tests/test_axes.py
@@ -937,33 +937,32 @@ def test_transparent_markers():
import nose
nose.runmodule(argv=['-s','--with-doctest'], exit=False)
-
+
@image_comparison(baseline_images=['vline_hline_zorder',
'errorbar_zorder'])
def test_eb_line_zorder():
x = range(10)
-
+
# First illustrate basic pyplot interface, using defaults where possible.
fig = plt.figure()
ax = fig.gca()
- ax.plot(x,lw=10,zorder=5)
- ax.axhline(1,color='red',lw=10,zorder=1)
- ax.axhline(5,color='green',lw=10,zorder=10)
- ax.axvline(7,color='m',lw=10,zorder=7)
- ax.axvline(2,color='k',lw=10,zorder=3)
-
+ ax.plot(x, lw=10, zorder=5)
+ ax.axhline(1, color='red', lw=10, zorder=1)
+ ax.axhline(5, color='green', lw=10, zorder=10)
+ ax.axvline(7, color='m', lw=10, zorder=7)
+ ax.axvline(2, color='k', lw=10, zorder=3)
+
ax.set_title("axvline and axhline zorder test")
-
# Now switch to a more OO interface to exercise more features.
fig = plt.figure()
ax = fig.gca()
x = range(10)
y = np.zeros(10)
yerr = range(10)
- ax.errorbar(x,y,yerr=yerr,zorder=5,lw=5,color='r')
+ ax.errorbar(x, y, yerr=yerr, zorder=5, lw=5, color='r')
for j in range(10):
- ax.axhline(j,lw=5,color='k',zorder=j)
- ax.axhline(-j,lw=5,color='k',zorder=j)
+ ax.axhline(j, lw=5, color='k', zorder=j)
+ ax.axhline(-j, lw=5, color='k', qzorder=j)
ax.set_title("errorbar zorder test")

0 comments on commit 0a909f9

Please sign in to comment.