-
Notifications
You must be signed in to change notification settings - Fork 7
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
Change deprecated textsize
to fontsize
#21
Conversation
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.
Sadly, we can't have compat bounds on optional dependencies right now. Thus, this will break the plotting for people using older versions of Makie, but that's the best what we can do right now 🤷
Is there any (sane) way that we can use to warn people about it for now? Eg, in the require clause of Makie, check if the new entity exists in the Makie module and if not, print a warning? |
On my machine (that uses an older Makie 0.7) everything still worked. |
Codecov Report
@@ Coverage Diff @@
## main #21 +/- ##
=======================================
Coverage 98.85% 98.85%
=======================================
Files 20 20
Lines 1838 1838
=======================================
Hits 1817 1817
Misses 21 21
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
That's great 👍 |
Not really (unless you want to fiddle with some internal Pkg stuff that may change any time). It's a keyword argument, so we can' just check something like |
I was thinking about something very simple like if isdefined(Makie, :to_textsize)
@warn "You seem to be using an older version of Makie (< v0.19). Not all plotting functions might work."
end But I have no strong opinion on this 🤷 |
Would this go into the |
Yes, after this line (untested): Line 12 in c7f9ca8
|
I looked into the Can someone else with an older version of Makie verify that one can swap the keyword argument |
Okay, that works. I get thrown a warning now on my machine but all the labels are still working properly. |
I have lost the thread here, should this merge as is or do we want to add the warning message? |
Doesn't hurt to add the warning message. And it would serve as a template for future changes and warnings that might/will arise when they change things again. |
330b4bd
Newer releases of Makie have replaced
textsize
everywhere in favor offontsize
.Closes #20