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

Options to align axis labels and ticks in 3D scenes #13

Merged
merged 16 commits into from
Oct 12, 2018

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Oct 10, 2018

This PR tries to enable an interactive alignment of axis ticks and titles (labels) that are long i.e. to avoid the overlap of layout descriptions with data representation: plotly/plotly.js#3077
This functionality is not applied for labels that are shorter than 4 characters e.g. 'x', 'y', 'z'.
In addition to this interactive behavior [option=1] other options could be used e.g [option=-1] to force everything horizontal (for backward compatibility), [option=0] to show raw clip angle (useful for debugging), [option=2] to have only horizontal and vertical alignments, or any number [option=3-n] for example [option=12] to have (360/12=) 30 degrees steps.
@dy @etpinard @alexcjohnson

@alexcjohnson
Copy link
Contributor

The meat of this is in gl-vis/gl-axes3d#14

@alexcjohnson alexcjohnson merged commit 189095c into master Oct 12, 2018
@alexcjohnson alexcjohnson deleted the rotate3d-axis-lables branch October 12, 2018 20:37
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

Successfully merging this pull request may close these issues.

2 participants