Can't Wrap X-Axis Text #1289
Unanswered
fred-spaceape
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi, multiline axis labels are not supported at the moment unfortunately. A partial workaround at this time could be adjusting the maximum length of labels using the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Good to know a fix is coming and thanks for the quick reply 🙇
…On Thu, 23 Jan 2025 at 20:08, Igor Alshannikov ***@***.***> wrote:
Hi, multiline axis labels are not supported at the moment unfortunately.
There is corresponding issue #948
<#948> and we are currently
working on the fix.
A partial workaround at this time could be adjusting the maximum length of
labels using the lablim parameter in scale_x_discrete().
—
Reply to this email directly, view it on GitHub
<#1289 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWABX4CJSK6SIM2T75OEFL2MEV2DAVCNFSM6AAAAABVXAVYK6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJTGM2DIMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
We're hiring! Go to spaceapegames.com
<http://www.spaceapegames.com> for more!
Space Ape Games (UK) Limited is
registered in England and Wales, No. 7956131.
Registered office: First
Floor, 100 New Oxford Street, London WC1A 1HB.
All communication is dealt
in line with our Privacy Policy
<http://www.spaceapegames.com/privacy-policy> and Recruitment Privacy
Policy <http://www.spaceapegames.com/candidate-privacy-policy>.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
I'm making a simple bar chart, but the x-axis labels are quite long ("Price XX% Timer Next Session")
When I plot it, I'm struggling to show the labels nicely.
I tried using textwrap to wrap the labels nicely e.g.
scale_x_discrete(labels = [textwrap.fill(label, width=12) for label in df['variant_name']]) +
textwrap.fill adds in the \n chars to break the lines up, but lets-plot ignores these when it generates the x-axis:
Any advice how to fix this?
Thanks,
Fred
Beta Was this translation helpful? Give feedback.
All reactions