Skip to content
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

legend #581

Closed
Enming-Zhou opened this issue Jan 9, 2023 · 1 comment
Closed

legend #581

Enming-Zhou opened this issue Jan 9, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Enming-Zhou
Copy link

Enming-Zhou commented Jan 9, 2023

Does mplfinance have the function of adding legends? For example, the legends of MA5, MA20, MA60.

@Enming-Zhou Enming-Zhou added the question Further information is requested label Jan 9, 2023
@DanielGoldfarb
Copy link
Collaborator

@Enming-Zhou mplfinance does not yet directly support legends (for example with a legend kwarg).

However legends can be implemented using matplotlib's returnfig kwarg to gain access to the mplfinance Axes objects.

Click here for more detailed information about implementing legends.

.
.
(some additional info also here.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants