Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Add ‘mpn65’ palette
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Jan 25, 2018
1 parent 067afa3 commit 8418158
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo.js
Expand Up @@ -187,6 +187,9 @@
tbody.appendChild(createColorRow(colors, title || name));
};

addHeading('Miscellaneous');
add('Big qualitative palette', 'mpn65');

addHeading("Paul Tol's palettes");
add("Tol's qualitative palette (cbf)", 'tol');
add("Tol's Diverging palette (cbf)", 'tol-dv');
Expand Down
23 changes: 23 additions & 0 deletions palette.js
Expand Up @@ -799,6 +799,29 @@ palette.PalettesList;
palette.SchemeType;


/* mpn65 palette start here. ************************************************/

/* The ‘mpn65’ palette is designed for systems which show many graphs which
don’t have custom colour palettes chosen by humans or if number of necessary
colours isn’t know a priori. */

(function() {
var scheme = palette.Scheme.fromPalettes('mpn65', 'qualitative', [[
'ff0029', '377eb8', '66a61e', '984ea3', '00d2d5', 'ff7f00', 'af8d00',
'7f80cd', 'b3e900', 'c42e60', 'a65628', 'f781bf', '8dd3c7', 'bebada',
'fb8072', '80b1d3', 'fdb462', 'fccde5', 'bc80bd', 'ffed6f', 'c4eaff',
'cf8c00', '1b9e77', 'd95f02', 'e7298a', 'e6ab02', 'a6761d', '0097ff',
'00d067', '000000', '252525', '525252', '737373', '969696', 'bdbdbd',
'f43600', '4ba93b', '5779bb', '927acc', '97ee3f', 'bf3947', '9f5b00',
'f48758', '8caed6', 'f2b94f', 'eff26e', 'e43872', 'd9b100', '9d7a00',
'698cff', 'd9d9d9', '00d27e', 'd06800', '009f82', 'c49200', 'cbe8ff',
'fecddf', 'c27eb6', '8cd2ce', 'c4b8d9', 'f883b0', 'a49100', 'f48800',
'27d0df', 'a04a9b'
]]);
scheme.shrinkByTakingHead(true);
palette.register(scheme);
})();

/* Paul Tol's schemes start here. *******************************************/
/* See http://www.sron.nl/~pault/ */

Expand Down

4 comments on commit 8418158

@terenceng2010
Copy link

Choose a reason for hiding this comment

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

will this changes updated to npm?

@mina86
Copy link
Contributor Author

@mina86 mina86 commented on 8418158 Mar 19, 2018

Choose a reason for hiding this comment

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

I’m not maintaining npm package. You’ll have to ping the maintainer directly.

@terenceng2010
Copy link

Choose a reason for hiding this comment

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

@davidbanham
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.