From 07c3b58b8f649c35631f2d71233d09e3c98c4e6f Mon Sep 17 00:00:00 2001 From: craig-warren Date: Mon, 30 May 2016 15:44:38 +0100 Subject: [PATCH] Fixed strange indent. --- tests/test_compare_numerical.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/test_compare_numerical.py b/tests/test_compare_numerical.py index cafb65fa..338d9073 100644 --- a/tests/test_compare_numerical.py +++ b/tests/test_compare_numerical.py @@ -77,12 +77,12 @@ for ID, name in fields.items(): # Plot new fig1, ((ax1, ax2), (ax3, ax4), (ax5, ax6)) = plt.subplots(nrows=3, ncols=2, sharex=False, sharey='col', subplot_kw=dict(xlabel='Time [ns]'), num=newfile + ' versus ' + oldfile, figsize=(20, 10), facecolor='w', edgecolor='w') - ax1.plot(timenew, new[:,0],'r', lw=2, label='Ex') - ax3.plot(timenew, new[:,2],'r', lw=2, label='Ey') - ax5.plot(timenew, new[:,4],'r', lw=2, label='Ez') - ax2.plot(timenew, new[:,1],'b', lw=2, label='Hx') - ax4.plot(timenew, new[:,3],'b', lw=2, label='Hy') - ax6.plot(timenew, new[:,5],'b', lw=2, label='Hz') +ax1.plot(timenew, new[:,0],'r', lw=2, label='Ex') +ax3.plot(timenew, new[:,2],'r', lw=2, label='Ey') +ax5.plot(timenew, new[:,4],'r', lw=2, label='Ez') +ax2.plot(timenew, new[:,1],'b', lw=2, label='Hx') +ax4.plot(timenew, new[:,3],'b', lw=2, label='Hy') +ax6.plot(timenew, new[:,5],'b', lw=2, label='Hz') # Set ylabels ylabels = ['$E_x$, field strength [V/m]', '$H_x$, field strength [A/m]', '$E_y$, field strength [V/m]', '$H_y$, field strength [A/m]', '$E_z$, field strength [V/m]', '$H_z$, field strength [A/m]'] @@ -103,12 +103,12 @@ for index, ax in enumerate(fig1.axes): # Plots of differences fig2, ((ax1, ax2), (ax3, ax4), (ax5, ax6)) = plt.subplots(nrows=3, ncols=2, sharex=False, sharey='col', subplot_kw=dict(xlabel='Time [ns]'), num='Deltas: ' + newfile + ' versus ' + oldfile, figsize=(20, 10), facecolor='w', edgecolor='w') - ax1.plot(timenew[:timesmallest], diffs[:,0],'r', lw=2, label='Ex') - ax3.plot(timenew[:timesmallest], diffs[:,2],'r', lw=2, label='Ey') - ax5.plot(timenew[:timesmallest], diffs[:,4],'r', lw=2, label='Ez') - ax2.plot(timenew[:timesmallest], diffs[:,1],'b', lw=2, label='Hx') - ax4.plot(timenew[:timesmallest], diffs[:,3],'b', lw=2, label='Hy') - ax6.plot(timenew[:timesmallest], diffs[:,5],'b', lw=2, label='Hz') +ax1.plot(timenew[:timesmallest], diffs[:,0],'r', lw=2, label='Ex') +ax3.plot(timenew[:timesmallest], diffs[:,2],'r', lw=2, label='Ey') +ax5.plot(timenew[:timesmallest], diffs[:,4],'r', lw=2, label='Ez') +ax2.plot(timenew[:timesmallest], diffs[:,1],'b', lw=2, label='Hx') +ax4.plot(timenew[:timesmallest], diffs[:,3],'b', lw=2, label='Hy') +ax6.plot(timenew[:timesmallest], diffs[:,5],'b', lw=2, label='Hz') # Set ylabels ylabels = ['$E_x$', '$H_x$', '$E_y$', '$H_y$', '$E_z$', '$H_z$']