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

Granular X/Y axis steps #34

Closed
ernestas-poskus opened this issue Sep 21, 2019 · 2 comments
Closed

Granular X/Y axis steps #34

ernestas-poskus opened this issue Sep 21, 2019 · 2 comments

Comments

@ernestas-poskus
Copy link

Thank you for the crate!

How to configure steps X / Y axis steps to be more granular, e.g.:

stock image

https://github.com/38/plotters/blob/master/examples/stock.rs#L38

First step in X axis: 2019-03-13, last step 2019-04-24, how to force display all 30 dates as steps in this graph?

@38
Copy link
Member

38 commented Sep 21, 2019

Hi, If my understanding is correct you may want to use this API https://docs.rs/plotters/0.2.6/plotters/chart/struct.MeshStyle.html#method.x_labels which you are changing the maximum number of labels on x aixs.

@ernestas-poskus
Copy link
Author

Yes exactly what I need, somehow I have missed these methods 🙇‍♂️

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

No branches or pull requests

2 participants