Skip to content

Commit e2c3448

Browse files
committed
Plot full response to send to collaborators.
1 parent 83f5fb7 commit e2c3448

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/netBLfall.py

100644100755
+5-3
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128

129129
nsteps = 200
130130
for i in range(nsteps):
131-
net.evolve_threshold_width_river_network(nt=1, dt=dt)
132-
if i % np.ceil(nsteps/10) == 0:
131+
net.evolve_threshold_width_river_network(nt=1, dt=10*dt)
132+
if i % np.ceil(nsteps/50) == 0:
133133
for lp in net.list_of_LongProfile_objects:
134134
# If not downstream-most segment
135135
if len( lp.downstream_segment_IDs ) > 0:
@@ -140,7 +140,7 @@
140140
plt.plot(_xjoin, _zjoin, 'k-', linewidth=1, alpha=1)
141141
else:
142142
plt.plot(lp.x_ext[0][-2:], lp.z_ext[0][-2:], 'k-', linewidth=1, alpha=1)
143-
plt.plot(lp.x, lp.z, '-', linewidth=1, alpha=1)#, label=lp.)
143+
plt.plot(lp.x, lp.z, 'k-', linewidth=1, alpha=.2)#, label=lp.)
144144

145145
for lp in net.list_of_LongProfile_objects:
146146
# If not downstream-most segment
@@ -154,6 +154,8 @@
154154
plt.plot(lp.x_ext[0][-2:], lp.z_ext[0][-2:], 'k-', linewidth=3, alpha=.5)
155155
plt.plot(lp.x, lp.z, 'k-', linewidth=3, alpha=.5)#, label=lp.)
156156

157+
plt.xlabel('Distance downvalley in network [m]', fontsize=16)
158+
plt.ylabel('Elevation above outlet before\nbase-level fall [m]', fontsize=16)
157159
plt.tight_layout()
158160
plt.show()
159161
#"""

0 commit comments

Comments
 (0)