-
Notifications
You must be signed in to change notification settings - Fork 228
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
Horizontal alignment of facet title not working #867
Comments
Relevant lines: plotnine/plotnine/_mpl/text.py Lines 67 to 68 in 4159f95
|
@has2k1 could I try and help with this? If so, I can look around but wondered if you knew off hand somewhere else Thanks! |
@jwhendy, you can if you make sense of it. Normally matplotlib handles the horizontal alignment and it aligns along an edge. Here we have to repurpose the alignment to be a justification within the For example, We also have to deal with the |
@has2k1 I admit my experience with more sophisticated/formal python projects is not good. I had some ideas, but struck out even figuring out how to access the I have little/no experience with the I am definitely willing to keep trying, but don't want to burden you with coaching me. I defer to your time and patience :) From the title alignment, my baby step was going to be:
|
The values of |
@has2k1 ah, that makes me feel slightly better :) Here's an first attempt at my fork. Some comments:
Test code, switching line 66 to test:
|
Create a PR and we continue there. |
@has2k1 I drafted it but then paused. I branched off of |
Branching off main is the way to go. |
Thanks for confirming, created! |
I think I ran into the same as #506 . Repro:
Default facet strip_text:
Theming
element_text
to try and applyha='right'
, I get the same result:Using
ha='left'
yields the same:I also tried explicitly using
strip_text_x
(andstrip_text_y
, cause why not try it all) and saw no effect. I also triedfacet_grid
instead offacet_wrap
just to be thorough and saw the same behavior as above.I'm on OS X, with
plotnine==0.13.6
. I was on0.13.0
when I wrote this, upgraded, restarted my jupyter kernel, and reproduced again to verify it's not been fixed, at least in the released version.The text was updated successfully, but these errors were encountered: