Skip to content

Commit

Permalink
pep8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Jan 2, 2013
1 parent 269190e commit 0a909f9
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions lib/matplotlib/tests/test_axes.py
Expand Up @@ -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.