-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add method mpf.kwarg_help()
to print kwargs information.
#416
Conversation
@lfenzo Thank you. I have been thinking about doing this for months and just never got around to it. This is amazing that you thought to do it! I don't have time right now to look it over in detail. I would like to make a few comments and ask for a few changes:
dino@DINO:~/code/mplfinance/src/mplfinance$ egrep -i 'def .*valid.*kwarg' *.py
_arg_validators.py:def _validate_vkwargs_dict(vkwargs):
_styles.py:def _valid_make_mpf_style_kwargs():
_styles.py:def _valid_make_marketcolors_kwargs():
_utils.py:def _valid_renko_kwargs():
_utils.py:def _valid_pnf_kwargs():
_utils.py:def _valid_lines_kwargs():
_widths.py:def _valid_scale_width_kwargs():
_widths.py:def _valid_update_width_kwargs():
plotting.py:def _valid_plot_kwargs():
plotting.py:def _valid_addplot_kwargs():
Please let me know your thought on the above. And again, thank you so much for contributing! P.S. Meanwhile, I need to try to figure out why |
@DanielGoldfarb thanks for reviewing so quickly!
All the errors above mention
Thank you for reviewing! Enzo. |
mpf.kwarg_help()
to print kwargs information.
Added descriptions fields in the kwargs dicts for plotting. Only a few of the kwargs have descriptions, however the feature of displaying the kwargs with descriptions is already available with the function
_display_formetted_kwargs_table()
and other descriptions can be added. I wasn't sure where to place this feature without changing the API for plotting so I left it untouched, but I think this could be added either with a kwarg for the ´plot´ method or with a dedicated method,