better axis label

This commit is contained in:
Gitea 2023-02-21 19:26:53 -08:00
parent 6e3cc1c3bd
commit b0aa45366b

View File

@ -193,7 +193,7 @@ def test1(solver=generic_solver):
pyplot.subplot(2, 2, 2) pyplot.subplot(2, 2, 2)
pyplot.plot(numpy.log10(numpy.abs(E[1][:, center[1], center[2]]) + 1e-10)) pyplot.plot(numpy.log10(numpy.abs(E[1][:, center[1], center[2]]) + 1e-10))
pyplot.grid(alpha=0.6) pyplot.grid(alpha=0.6)
pyplot.ylabel('log10 of field') pyplot.ylabel('log10 of Ey @ centerline')
pyplot.subplot(2, 2, 3) pyplot.subplot(2, 2, 3)
pcolor(numpy.real(E[1][:, :, center[2]]).T) pcolor(numpy.real(E[1][:, :, center[2]]).T)
pyplot.subplot(2, 2, 4) pyplot.subplot(2, 2, 4)