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

Wrap tick mark (category) labels across multiple lines #436

Closed
sjl124 opened this issue Sep 23, 2014 · 2 comments
Closed

Wrap tick mark (category) labels across multiple lines #436

sjl124 opened this issue Sep 23, 2014 · 2 comments

Comments

@sjl124
Copy link

sjl124 commented Sep 23, 2014

Hi,

Is there any way to wrap long tick mark labels (corresponding to category labels in a plot) across multiple lines? I blindly tried a newline character
"This category label\n should go\n across three lines"
but that didn't work.

Thanks!

@dcjones
Copy link
Collaborator

dcjones commented Sep 25, 2014

Newlines should work as expected now. I'd like to have automatic word wrapping someday, but that probably won't be soon.

@sjl124
Copy link
Author

sjl124 commented Oct 28, 2014

Thanks! Newlines are working. A small bug in the implementation though... very minor, but here it is...

Gadfly appears to calculate the size needed for a plot before the word wrapping/newlines are applied to labels. For long labels, this leaves a lot of white space after the newlines are applied.

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