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

Center time-interval names to the plotted part of the time interval #18

Closed
mcranium opened this issue Nov 17, 2019 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@mcranium
Copy link

I noticed that there is much space in some scales that is not used efficiently. For example, in the "Stack multiple scales (e.g. periods, epochs, stages)" example on the readme file the word "Cretaceous" is positioned at the center of the Cretaceous. Thus, the word is cut off in the plot. Could the text element not be centered to the visible part of the time interval?

@willgearty willgearty added the enhancement New feature or request label Nov 17, 2019
@willgearty
Copy link
Owner

My original idea here was to put this responsibility on the user. You can get any of the timescale data, modify it to your liking, then supply it to the function.

However, I think this would be possible and makes sense as an option that many users might want, so I'll look into it when I get a chance.

@willgearty
Copy link
Owner

This should be fairly simple by just modifying the dat object such that the ends of the edge time periods are the axis limits. We just need to make sure we don't make all of the hidden periods show up.

@willgearty
Copy link
Owner

This has been implemented in ce45a54. Let me know if you have any trouble using the new argument, @mcranium.

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

No branches or pull requests

2 participants