|
54 | 54 | o3.run(duration=timedelta(hours=24), time_step=1800) |
55 | 55 |
|
56 | 56 |
|
57 | | -plt.subplot(3,1,1) |
58 | | -o.result.z.plot.line(x='time', add_legend=False, color='k') |
59 | | -o2.result.z.plot.line(x='time', add_legend=False, color='r') |
60 | | -o3.result.z.plot.line(x='time', add_legend=False, color='g') |
| 57 | +fig = plt.figure(figsize=(10, 10)) |
| 58 | +gs = fig.add_gridspec(5, 1) |
| 59 | +ax1 = fig.add_subplot(gs[0:3, 0]) |
| 60 | +o.result.z.plot.line(ax=ax1, x='time', add_legend=False, color='k') |
| 61 | +o2.result.z.plot.line(ax=ax1, x='time', add_legend=False, color='r') |
| 62 | +o3.result.z.plot.line(ax=ax1, x='time', add_legend=False, color='g') |
61 | 63 | plt.plot([], [], color='k', label='No stretching or correction') |
62 | 64 | plt.plot([], [], color='r', label='Column stretching') |
63 | 65 | plt.plot([], [], color='g', label='Vertical velocity correction') |
64 | 66 | plt.legend() |
65 | | -plt.subplot(3,1,2) |
66 | | -o.result.sea_floor_depth_below_sea_level.plot.line(x='time', add_legend=False, color='k') |
67 | | -plt.subplot(3,1,3) |
68 | | -o.result.upward_sea_water_velocity.plot.line(x='time', add_legend=False, color='k') |
| 67 | +ax2 = fig.add_subplot(gs[3, 0]) |
| 68 | +o.result.sea_floor_depth_below_sea_level.plot.line(ax=ax2, x='time', add_legend=False, color='k') |
| 69 | +ax3 = fig.add_subplot(gs[4, 0]) |
| 70 | +o.result.upward_sea_water_velocity.plot.line(ax=ax3, x='time', add_legend=False, color='k') |
69 | 71 | plt.show() |
0 commit comments