Skip to content

Commit 603ab45

Browse files
committed
Split limits and plate size plots in vzcheck mode
Their x axis has different meaning.
1 parent b9a3726 commit 603ab45

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

stagpy/plates.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -776,16 +776,19 @@ def cmd():
776776
sizeplates.append(phi[limits[lim]] - phi[limits[lim - 1]])
777777
phi_lim = [phi[i] for i in limits]
778778
dvp_lim = [dvphi[i] for i in limits]
779-
fig, axes = plt.subplots(nrows=3, sharex=True, figsize=(6.4, 9.6))
779+
fig, axes = plt.subplots(nrows=2, sharex=True, figsize=(6.4, 6.4))
780780
axes[0].plot(step.geom.p_walls, vphi_surf)
781781
axes[0].set_ylabel(r"Horizontal velocity $v_\phi$")
782782
axes[1].plot(phi, dvphi)
783-
axes[1].set_ylabel(r"$dv_\phi/d\phi$")
784783
axes[1].scatter(phi_lim, dvp_lim, color='red')
785-
axes[2].hist(sizeplates, 10, (0, np.pi))
786-
axes[2].set_ylabel("Number of plates (size)")
787-
axes[2].set_xlabel(r"$\phi$")
788-
saveplot(fig, 'plates', step.isnap)
784+
axes[1].set_ylabel(r"$dv_\phi/d\phi$")
785+
axes[1].set_xlabel(r"$\phi$")
786+
saveplot(fig, 'plate_limits', step.isnap)
787+
fig, axis = plt.subplots()
788+
axis.hist(sizeplates, 10, (0, np.pi))
789+
axis.set_ylabel("Number of plates")
790+
axis.set_xlabel(r"$\phi$-span")
791+
saveplot(fig, 'plate_size_distribution', step.isnap)
789792

790793
nb_plates.append(len(limits))
791794

0 commit comments

Comments
 (0)