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

Regular intervals when using datetime instead of date #74

Open
fintron opened this issue Mar 30, 2020 · 3 comments
Open

Regular intervals when using datetime instead of date #74

fintron opened this issue Mar 30, 2020 · 3 comments
Labels
enhancement New feature or request in progress

Comments

@fintron
Copy link

fintron commented Mar 30, 2020

I'm currently using mplfinance with a dataframe that contains datetime/pandas.Timestamp instead of just date. When I plot this, the x-axis ends up having irregularly spaced timestamps.

See example:

image

Instead, it would be good if either there were intervals / timegaps that were user-provided or were regularly spaced (eg. 9:30am, 12pm, 4pm, etc). It would also be nice if the user can specify the date/time format to use when graphing.

@fintron fintron added the enhancement New feature or request label Mar 30, 2020
@DanielGoldfarb
Copy link
Collaborator

Issue #21 also mentions this. However, at least for now, I will keep this issue #74 open to cover any x-ticks work (because issue #21 is requesting several, somewhat unrelated, things and it may just be easier to manage development by splitting items out into individual issues).

@blonc
Copy link

blonc commented Mar 31, 2020

definitely a agree this feature is needed when dealing with intraday data. Trying to have a steady intervale at the bottom is pretty important. IE timeframe printed is 30min or some other given value.

@DanielGoldfarb
Copy link
Collaborator

Thank you. I agree. We will definitely do this. Just have a couple things, currently being worked on, to finish first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress
Projects
None yet
Development

No branches or pull requests

3 participants