-
Notifications
You must be signed in to change notification settings - Fork 252
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
Colorscales #763
Colorscales #763
Conversation
I'm not sure I understand what made the CI build fail but I'm happy to try fix it if you guide me. |
|
||
minvalue | ||
maxvalue | ||
|
||
function ContinuousColorScale(f::Function; minvalue=nothing, maxvalue=nothing) | ||
new(f, minvalue, maxvalue) | ||
function ContinuousColorScale(f::Function, trans::ContinuousScaleTransform; minvalue=nothing, maxvalue=nothing) |
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.
I think the problem is on this line. Since the trans
argument did not exist before, and a default value is not provided, it is breaking any existing code that simply calls ContinuousColorScale(f)
. Try turning it to trans::ContinuousScaleTransform = identity_transform
?
That worked, thanks @darwindarak ! |
LGTM. But I suspect this could use a test, otherwise your shiny new functionality might get broken by some other well-meaning future contribution 😄. The general guideline seems to be to add a new file to the |
I added a single test instead of testing all variants since that seems to be the norm. (I did test them all manually.) I also updated the docs. There is one more thing I'd like to do but I'd rather ask first: update the docs such that the name |
I think we should move towards making test-all-variants the norm if possible. Why not? It seems a little awkward to group all the variants under the docs for |
@darwindarak Sure I can add more exhaustive tests, I just didn't want to add too many files. About the docs, yes and no. I agree that Also, it looks very odd to me that |
That makes sense, so group everything under |
Sounds good. It's ready to merge then. In a different PR, I'll rename |
I added transformed continuous color scales to fix #744 and fix what I think is a typo in
asinh_formatter
.It seems to work fine but I am a Gadfly beginner so please make sure I didn't break anything!