Skip to content

Commit 63d931e

Browse files
author
Daniel Ruprecht
committed
fixed plotting commands
1 parent 2970302 commit 63d931e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/acoustic_1d_imex/playground.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979

8080
fig = plt.figure(figsize=(8,8))
8181

82-
plt.plot(P.state.grid.x.centers, uex.values[0,:], '+', color='b', label='u (exact)')
83-
plt.plot(P.state.grid.x.centers, uend.values[0,:], '-', color='b', label='u (SDC)')
84-
plt.plot(P.state.grid.x.centers, uex.values[1,:], '+', color='r', label='p (exact)')
85-
plt.plot(P.state.grid.x.centers, uend.values[1,:], '-', color='r', label='p (SDC)')
82+
plt.plot(P.mesh, uex.values[0,:], '+', color='b', label='u (exact)')
83+
plt.plot(P.mesh, uend.values[0,:], '-', color='b', label='u (SDC)')
84+
plt.plot(P.mesh, uex.values[1,:], '+', color='r', label='p (exact)')
85+
plt.plot(P.mesh, uend.values[1,:], '-', color='r', label='p (SDC)')
8686
plt.legend()
8787
plt.xlim([0, 1])
8888
plt.ylim([-1, 1])

0 commit comments

Comments
 (0)