-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Support for disabling axis ticks in UnicodePlots #4681
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4681 +/- ##
==========================================
+ Coverage 90.26% 90.40% +0.13%
==========================================
Files 40 40
Lines 8704 8712 +8
==========================================
+ Hits 7857 7876 +19
+ Misses 847 836 -11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
In the UnicodePlots context, I would instead add a _has_ticks(::Any) = true # catchall
_has_ticks(s::Symbol) = s !== :none
_has_ticks(::Nothing) = false
_has_ticks(b::Bool) = b
has_ticks(axis) = get(axis, :ticks, nothing) |> _has_ticks , and use the following instead: xticks = has_ticks(xaxis),
yticks = has_ticks(yaxis), |
Good call. I will also add overloads for |
Co-authored-by: t-bltg <[email protected]>
Thanks 👍 |
Fixes #4657