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

colormap, mid value does not work #38

Closed
stefanahman opened this issue Jun 8, 2014 · 2 comments
Closed

colormap, mid value does not work #38

stefanahman opened this issue Jun 8, 2014 · 2 comments
Labels

Comments

@stefanahman
Copy link

I am trying to generate a colormap and only want to fetch the darker shades of "Blues":

colormap("Blues", 2; mid=0.9)

But this generates the same color as if mid would be excluded. Am I missing something?

Source: https://github.com/JuliaLang/Color.jl#colormaps

@dcjones
Copy link
Contributor

dcjones commented Jun 10, 2014

CC: @natj

@natj
Copy link
Contributor

natj commented Jun 10, 2014

mid is used for diverging colormaps to change the relative location of the middle point where the color changes from e.g. red to blue in RdBu. What you want to modify is the brightness b that defines the starting point of the color palette.

Now that I look the documentation I can also see where this misconception originates from. For some reason I have mentioned mid as somehow special keyword which it is not.

Also one extra thumb up for a more thorough documentation as mentioned in #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants