econ-ark / DemARK

Demonstrations of how to use material in the Econ-ARK
https://econ-ark.github.io/DemARK/
Apache License 2.0
33 stars 93 forks source link

TypeError: text() missing 1 required positional argument: 's' #95

Closed sbenthall closed 4 years ago

sbenthall commented 4 years ago
$ ipython Chinese-Growth.py 
100%|█████████████████████████████████████████████| 5/5 [02:18<00:00, 27.75s/it]
(econ-ark) sb@nothingness:~/projects/econ-ark/DemARK/notebooks$ ipython ConsPortfolioModelDoc.py 
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
~/projects/econ-ark/DemARK/notebooks/ConsPortfolioModelDoc.py in <module>
    142 plt.axhline(lnpcct.MertSamCampVicShare, c='r')
    143 plt.ylim(0,1.05)
--> 144 plt.text((aMax-aMin)/4,lnpcct.MertSamCampVicShare-0.1,r'$\uparrow $ limit as  $m \uparrow \infty$',fontsize = 22,fontweight='bold')
    145 plt.show()
    146 

~/.virtualenvs/econ-ark/lib/python3.7/site-packages/matplotlib/pyplot.py in text(x, y, s, fontdict, withdash, **kwargs)
   2961         x, y, s, fontdict=None,
   2962         withdash=cbook.deprecation._deprecated_parameter, **kwargs):
-> 2963     return gca().text(x, y, s, fontdict=fontdict, withdash=withdash, **kwargs)
   2964 
   2965 

TypeError: text() missing 1 required positional argument: 's'
MridulS commented 4 years ago

fixed in #99