Skip to content

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

Merged
kimikage merged 2 commits into
JuliaGraphics:masterfrom
kimikage:msc
Sep 17, 2019
Merged

kimikage merged 2 commits into
JuliaGraphics:masterfrom
kimikage:msc

Conversation

@kimikage

Copy link
Copy Markdown
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.

Comment thread src/algorithms.jl
# 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
Copy Markdown
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

codecov Bot commented Sep 14, 2019 •

Copy link
Copy Markdown

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

@timholy timholy left a comment

Copy link
Copy Markdown
Member

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