Skip to content

Commit 7359335

Browse files
authored
Update SpecNec_executable_streamlit.py
1 parent 723622d commit 7359335

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fun_SPEC_NEC/SpecNec_executable_streamlit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@
202202
ax1.plot([1,1], [0,Sd1], color=(0, 0, 0), marker='o', markersize=5, markerfacecolor='w',
203203
markeredgewidth=1, linewidth=1.0, alpha=0.5,linestyle = '--')
204204

205+
# Add text annotation for Sds
206+
ax1.text(0.3, Sds, f'Sds = {Sds:.2f} g', fontsize=10, verticalalignment='bottom', horizontalalignment='right')
207+
# Add text annotation for Sd1
208+
ax1.text(1, Sd1, f'Sds = {Sds:.2f} g', fontsize=10, verticalalignment='bottom', horizontalalignment='right')
209+
205210
ax1.set_xlim([Tie[0], (max(Tie))])
206211
ax1.set_ylim([0, (max(Sae)*1.05)])
207212
plt.title('SPEC NEC-SE-DS-2024', fontsize=10, color=(0, 0, 1))

0 commit comments

Comments
 (0)