Tol colors

Versión 1.0.1 (3,12 KB) por Nans Bujan
Creates a palette with up to 12 colors that are easy to distinct everywhere (print, screen, B&W), for everyone (color-blindness) and pretty.
238 Descargas
Actualizado 3 feb 2019

Ver licencia

The colors created by Paul Tol at SRON are good for publication-quality figures:
https://personal.sron.nl/~pault/
- distinct for all people, including color-blind readers
- distinct from black and white
- distinct on screen and paper
- still match well together

ptc6 calls up to 6 RGB colors.
use ptc12 if more colors are needed (up to 12).

Usage:
ptc6(n) % n is the number of distinct colors
(a light gray is added at n+1)

Example:
TOLC=ptc6(5)
plot(1:10,sin(1:10),'Color', TOLC(1,:))
hold on
plot(1:10,sin((1:10)+1),'Color', TOLC(2,:))
...

To visualize each scheme of color selected, add 'check' to the function:
ptc6(3, 'check') % displays the 3 colors on a figure

Citar como

Nans Bujan (2026). Tol colors (https://es.mathworks.com/matlabcentral/fileexchange/70180-tol-colors), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2017a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Annotations en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: Maximally Distinct Color Generator

Versión Publicado Notas de la versión
1.0.1

updated

1.0.0