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

Logarithmic price scale #272

Closed
whyrv opened this issue Oct 6, 2020 · 2 comments
Closed

Logarithmic price scale #272

whyrv opened this issue Oct 6, 2020 · 2 comments
Labels
question Further information is requested

Comments

@whyrv
Copy link

whyrv commented Oct 6, 2020

Hi Daniel, Is it possible to set the Y axis to use log price scale (default seems to arithmetic, unless I'm mistaken). thanks

@whyrv whyrv added the question Further information is requested label Oct 6, 2020
@DanielGoldfarb
Copy link
Collaborator

At present there is no direct setting for a logarithmic scale.

You have to gain access to the Axes and then "manually" set the yscale to 'log' yourself.

There are two ways to gain access to the Axes objects as described here.

For an example, see #21 (comment).

Please let me know if you are interested in implementing this feature for mplfinance so that users can simply write:

mpf.plot(df,yscale='log')

@whyrv
Copy link
Author

whyrv commented Oct 6, 2020

Thanks Daniel, I will look into the previous comments. (I am not proficient enough to do the implementation for mplfinance yet.)

@whyrv whyrv closed this as completed Oct 6, 2020
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