Skip to content
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

Fix erroneous MSC(h) and improve accuracy of MSC(h, l) (#349) #350

Merged
merged 2 commits into from
Sep 17, 2019

Conversation

kimikage
Copy link
Collaborator

This focuses primarily on bug fixes mentioned in #349, and the Interface improvements are future tasks.
Therefore, the interfaces remain except the additional keyword argument linear.

@@ -247,15 +239,55 @@ end

# Maximally saturated color for a specific hue and lightness
# is found by looking for the edge of LCHuv space.
function MSC(h,l)
pmid=MSC(h)
function MSC(h, l; linear::Bool=false)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was debating but decided to set the default value of linear to false. The reasons are as follows.

  • Since the bug fix of MSC(h) (gamma) is a slightly breaking change, it is no longer important whether MSC(h, l) involves breaking.
  • The differences are perceptually insignificant for the preset colormaps.

@codecov
Copy link

codecov bot commented Sep 14, 2019

Codecov Report

Merging #350 into master will increase coverage by 1.55%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #350      +/-   ##
==========================================
+ Coverage   72.51%   74.06%   +1.55%     
==========================================
  Files          10       10              
  Lines         764      775      +11     
==========================================
+ Hits          554      574      +20     
+ Misses        210      201       -9
Impacted Files Coverage Δ
src/algorithms.jl 59.79% <100%> (+12.11%) ⬆️
src/colormaps.jl 90.58% <0%> (+3.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7f4723...337b689. Read the comment docs.

@kimikage kimikage changed the title Fix erroneous MSC(h) and improve accuracy of MSC(h, l) Fix erroneous MSC(h) and improve accuracy of MSC(h, l) (#349) Sep 14, 2019
Copy link
Member

@timholy timholy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge at will!

@kimikage kimikage merged commit be3e641 into JuliaGraphics:master Sep 17, 2019
@kimikage kimikage deleted the msc branch September 17, 2019 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants