Spaces:
Sleeping
Sleeping
LuisLozano
commited on
Commit
•
992545a
1
Parent(s):
860967c
Update app.py
Browse files
app.py
CHANGED
@@ -36,5 +36,5 @@ if st.button('Calculate Present Value'):
|
|
36 |
plt.xlabel('Period')
|
37 |
plt.ylabel('Cashflow')
|
38 |
for i, cf in enumerate(cashflows):
|
39 |
-
plt.annotate(f'{cf:,.2f}', (i
|
40 |
st.pyplot(plt)
|
|
|
36 |
plt.xlabel('Period')
|
37 |
plt.ylabel('Cashflow')
|
38 |
for i, cf in enumerate(cashflows):
|
39 |
+
plt.annotate(f'{cf:,.2f}', (i, cf), textcoords="offset points", xytext=(0,n), ha='center')
|
40 |
st.pyplot(plt)
|