Skip to content

Commit fd8b19c

Browse files
authored
Update SpecNec_executable_streamlit.py
1 parent ac41c3b commit fd8b19c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

fun_SPEC_NEC/SpecNec_executable_streamlit.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,11 @@
197197
ax1.plot(Tie, Sai, color=(0, 0, 1), marker='+', markersize=0, markerfacecolor='w',
198198
markeredgewidth=0, linewidth=1.5, alpha=1.0,linestyle = '-',label= f'Inelastic Response Spectra')
199199

200-
ax1.plot([0.3,0.3], [0,Sds], color=(0, 0, 0), marker='o', markersize=5, markerfacecolor='w',
201-
markeredgewidth=1, linewidth=1.0, alpha=0.5,linestyle = '--')
202-
ax1.plot([1,1], [0,Sd1], color=(0, 0, 0), marker='o', markersize=5, markerfacecolor='w',
203-
markeredgewidth=1, linewidth=1.0, alpha=0.5,linestyle = '--')
200+
# Add text annotation for Sds
201+
ax1.text(0.3, Sds+0.02, f'$\\mathbf{{Sds = {Sds:.4f} \\, g}}$', fontsize=10, verticalalignment='bottom', horizontalalignment='left')
202+
# Add text annotation for Sd1
203+
ax1.text(1, Sd1+0.02, f'$\\mathbf{{Sd1 = {Sd1:.4f} \\, g}}$', fontsize=10, verticalalignment='bottom', horizontalalignment='left')
204+
204205

205206
# Add text annotation for Sds
206207
ax1.text(0.3, Sds+0.02, f'**Sds = {Sds:.4f} g**', fontsize=10, verticalalignment='bottom', horizontalalignment='left')

0 commit comments

Comments
 (0)