drosteeffect / brewermap Goto Github PK
View Code? Open in Web Editor NEW[MATLAB] The complete palette of ColorBrewer colormaps. Simple selection by scheme name and map length.
License: Apache License 2.0
[MATLAB] The complete palette of ColorBrewer colormaps. Simple selection by scheme name and map length.
License: Apache License 2.0
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.
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.
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?
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 make it as a package of octave? if octave user can also use it, it will be better!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.