-
Notifications
You must be signed in to change notification settings - Fork 658
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
API for adding labels: mpf.make_addplot(..., label="myLabel")
#605
Conversation
@alexpvpmindustry |
I use matplotlib alot, so
That is new to me. Either way, it would be more useful for the doc string to report all the allowed kwargs. Currently if I press shift+tab, the doc that comes out is quite useless.
No worries mate, no rush on my side. Just happy to contribute |
If you think 'label' is more intuitive for a matplotlib user that's ok. I know many of the matplotlib functions accept kwarg label meaning the label for the legend. Meanwhile, if you google "matplotlib label" most of the top results are about labeling the x and y axis. I don't feel strongly about this, but i do also want to be clear to users who may not be familiar with matplotlib. Part of my mplfinance philosophy is to make it easy to use without knowing matplotlib (or much python) while at the same time having hooks in place for those who know matplotlib and want to access it's full power. Regarding doc strings, the is a method you can call, |
sidenote: is there a way to provide kwargs suggestion/correction? like if someone input the wrong kwargs, the error at the end should say "ledgend_label" does not exist, do you mean "legend_label"? or something similar. in the docs of numpy functions, there is usually a suggestion for similar/related functions.
that is new to me :D
maybe u can put it into a todo. |
also, not sure if its somewhat related. |
@DanielGoldfarb any updates? |
Will try to look at this next week or the week after that. |
@DanielGoldfarb Following Merge PR Work Improve and creating New PR request Soon, any Suggestion for the new feature? Script additions for 'ema' plotting #563 API for adding labels: mpf.make_addplot(..., label="myLabel") #605 |
checking in on the labes piece here. Any update? |
@dempc6469 That PR is Under review. If You Like That Concept Please Download the Source code from my mplfinance fork here: https://github.com/DrChandrakant/mplfinance/tree/mav_ytick_label |
Much appreciated, Doc! Thanks!
…On Wed, Jun 28, 2023 at 7:39 AM Dr. Chandrakant Bangar < ***@***.***> wrote:
checking in on the labes piece here. Any update?
@dempc6469 <https://github.com/dempc6469> That PR is Under review. If You
Like That Concept Please Download the Source code from my mplfinance fork
here: https://github.com/DrChandrakant/mplfinance/tree/mav_ytick_label
—
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHAE7SR74FC6EB76IOEWLX3XNQQX3ANCNFSM6AAAAAAWZ2F3NM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@dempc6469 (et al) In the meantime if you do try out @DrChandrakant 's version I will greatly appreciate it if you can please post any feedback here. Thank you very much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this out and it works well. Can someone please merge this PR?
I think the moderator is busy with other projects please download this and use link here alexpvpmindustry:master |
Thanks to those who have tried this out! |
I've tweaked the code so that when passing a DataFrame to NEXT I need to test this new code for all relevant I hope to finish this today or tomorrow. |
e62f13c
to
5c22c44
Compare
easy api for adding labels to
mpf.make_addplot
Note:
see
examples/addplot_legends.ipynb
for the example notebook.courtesy of @ppseverin for inspiration, replacing PR #277