|
@@ -41,7 +41,7 @@ def _hist(card=None,date=None,columns=['date','card-num','name','cost']):
|
|
|
def hist(card=None,date=None,columns=['date','card-num','name','cost']):
|
|
|
print(_hist(card,date,columns))
|
|
|
|
|
|
-def plot(card=None,columns=['cost','cost-min','cost-max']):
|
|
|
+def plot(card=None,columns=['cost','cost-min','cost-max'],maxCost=None):
|
|
|
"""must use either card or date.
|
|
|
card cand be card-num or name
|
|
|
date can be a datetime type or a string like 'yyy-mm-dd'
|
|
@@ -51,5 +51,6 @@ def plot(card=None,columns=['cost','cost-min','cost-max']):
|
|
|
plt.title(str(card))
|
|
|
plt.xlabel("Date")
|
|
|
plt.ylabel("Cost")
|
|
|
+ plt.ylim(0,maxCost)
|
|
|
plt.show()
|
|
|
|