Giter Club home page Giter Club logo

brewermap's People

Contributors

drosteeffect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brewermap's Issues

Bad interpolation for RdYlBu

I recently tried to use the two-sided colormap RdYlBu via this function and noticed and that the color scale was not as smooth as I expected.

The following image illustrate the problem. Please note the lightening around 0.1 and 0.9.
image

To the right i have used colormap(brewermap(128,'_RdYlBu')) and colormap(rgb2gray(brewermap(128,'_RdYlBu'))).
To the left I have used C=interp1(1:length(C),C,linspace(1,length(C),128)); where C is a matrix of the 11 colors I got directly from the RdYlBu colormap on colorbrewer2.org a while ago.

My best suggestion is that this is related to that brewermaps interpolation is based on the 15 colors hard coded in and not the original 11 colors from the web. How have you got the 15 colors that are hard coded in the file?

This problems may also affect other divergent colormaps, I have not checked. The sequential colormaps I have tried seem fine.

brewermap_view for colororder

Hi there,

thanks for providing this nice Matlab addon. I wanted to ask for afeature that would be nice to have:
Is it possible to use brewermap_view also to change to colororder instead of the colormap? I am mostly using lineplots, that do not use colormap, but the colororder property.

Adding that would be great, if it is possible.

Cheers,
Niklas

Edit: Looking at your code, I just changed line 268 of brewermap_view to:
colororder(hgv(k),brewermap(nmr(k),bmvName()));

Is it possible to somehow implement this nicely to the matlab addon?

Update your README with “Open in MATLAB Online” badge

Hello, my name is Toshi Takeuchi from MathWorks.

ColorBrewer: Attractive and Distinctive Colormaps is a very popular file exchange entry but we noticed that the corresponding GitHub repo doesn’t have an "Open in MATLAB Online" badge.

In this blog post https://blogs.mathworks.com/matlab/2023/07/20/open-science-and-reusable-research-with-matlab-online-and-github/, MathWorks announced a new feature that makes your repo accessible to a wider audience. You can add a new badge on the README of your repo that allows anyone, with or without a MATLAB license, to clone the repo in MATLAB Drive and open it in MATLAB Online.

To add this badge to your repo, please follow the simple instructions on this page. https://www.mathworks.com/products/matlab-online/git.html

If this is not applicable to your repo, I would appreciate it if you could share the news with those who could benefit from it.

If you have any questions or concerns, feel free to reach out to me.

Best regards,

Toshi Takeuchi
Community Engagement
MathWorks

can octave use it?

can make it as a package of octave? if octave user can also use it, it will be better!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.