-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Generalize GR tick label rotations #3782
Conversation
I think I have the offsets working well, let me know what you think. |
I have a few simplifications to propose, do you mind if I push the changes here after your commits ? |
Sure! |
So I've simplified based on the assumption that the expected for
To me the , compared to the previous img http://docs.juliaplots.org/latest/generated/gr/#gr-ref29. I you disagree on anything, I'd be happy to revert 😃. |
Yeah, longer labels aren't adjusted the same, I'm seeing. Might be worth adding a graph with a long tick label to the test suite, like a DateTime, which would pick up on that. Looking into the issue. |
To me, the rotated mwe and |
You convinced me it looks better with an offset haha. I think I have it working, and this generic positioning code allows the angle-based alignment code to be removed. Only issue is the 3d plots' ticks aren't adjusted correctly anymore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, but I'm not that proficient in GR
Pros:
Cons:
|
Oh it's definitely a mess. I can try to simplify it, since the output is good. |
I'm within inches of a much better positioning logic for especially 3d plots, but I keep tripping up on all the angles involved. I'll come back to this. |
Well, I don't know if it is that much simpler to look at..., but the 3d plots positioning is now perfect IMO. |
@BioTurboNick can you make a PR with the most recent images? |
It doesn't seem like there are any changes vs. the last one. |
Oh I see, very tiny differences... |
Okay I'm not sure what's going on. I keep seeing no difference on my end. |
Codecov Report
@@ Coverage Diff @@
## master #3782 +/- ##
==========================================
- Coverage 63.20% 62.84% -0.37%
==========================================
Files 28 28
Lines 7491 7200 -291
==========================================
- Hits 4735 4525 -210
+ Misses 2756 2675 -81
Continue to review full report at Codecov.
|
|
Thanks. Then we take it as is for now and need to look into 40 on nightly in another PR |
Thanks all! |
Resolves #3776
PR for reference images: JuliaPlots/PlotReferenceImages.jl#109