PDA

查看完整版本 : New York Times Colors - Cleve Moler on Mathematics and Computing


poster
2025-12-24, 09:02
I admire the color scheme in the New York Times Games section and occasionally make it my colororder.

https://blogs.mathworks.com/cleve/files/nytgames.png

https://www.nytco.com/games

Contents


Colormaps (https://www.labfans.com/bbs/#b775e0cc-120e-443e-bfd3-b52055913abf)
Palettes (https://www.labfans.com/bbs/#4e281139-12a5-4b45-ab8b-4bfb541d60a8)
Color Order (https://www.labfans.com/bbs/#d0394ce0-f6ca-4fe6-ba61-8fa91a5ec3bb)
New York Times Games (https://www.labfans.com/bbs/#2162adb6-93bd-452b-966c-5a55d0f03577)
NYT Color Order (https://www.labfans.com/bbs/#10ebe126-c13a-4339-9b8e-8756acb5fb71)
Tangrams (https://www.labfans.com/bbs/#76fc404c-4679-445e-97a1-06dc44e4130f)
NYT Qube (https://www.labfans.com/bbs/#8b2a0c9f-2665-4c02-bf8b-9aadc3783225)
Gallery (https://www.labfans.com/bbs/#37f1ab87-cabe-44a9-bf78-64b50ecb933d)
fftmatrix (https://www.labfans.com/bbs/#5e5bb717-8b3b-44ec-9916-a9db99920b34)

Colormaps

It is important to distinguish between "color map" and "color order". A colormap defines the colors used by surface, image, and patch objects. MATLAB provides 22 color maps. parula is the default.

disp(colormaps) "parula" "turbo" "hsv" "hot" "cool" "spring" "summer" "autumn" "winter" "gray" "bone" "copper" "pink" "sky" "abyss" "nebula" "jet" "lines" "colorcube" "prism" "flag" "white"https://blogs.mathworks.com/cleve/files/colormaps.gif

Palettes

The colormap defines the palette of colors used by the plot function for multiple lines. MATLAB provides 10 palettes. gem is the default.

disp(palettes') "gem" "gem12" "glow" "glow12" "sail" "reef" "meadow" "dye" "earth" "default"https://blogs.mathworks.com/cleve/files/palettes.gif

Color Order

The colors used by MATLAB for plotting multiple lines need to be well separated. These colors are given by the colororder property of the current axes. By default, MATLAB cycles through the seven colors in the gem palette.

gcaco=get(gca,"ColorOrder");show_rgb(gcaco)https://blogs.mathworks.com/cleve/files/nytcolors_blog_01.png closeallclearNew York Times Games

The New York Times Games originated with the newspaper's crossword puzzle in 1942. NYT Games was established in 2014, with the addition of the Mini Crossword. Wordle was added in 2022 and I have been playing Wordle almost daily since its launch.

NYT Games now has over 10 million daily players. According to one member of staff, "the half joke that is repeated internally is that The New York Times is now a gaming company that also happens to offer news."

NYT Color Order

I like the color scheme that the Times uses in the Games section. It provides a subtler color order than the default gem.

nyt_paletteans = 184 228 68 248 211 0 121 160 238 184 113 198 160 82 45 235 235 200nytco=nyt_palette/256ribbon(6)set(gcf,'position',[200200440300])set(gca,'colororder',nytco)drawnownytco = 0.7188 0.8906 0.2656 0.9688 0.8242 0 0.4727 0.6250 0.9297 0.7188 0.4414 0.7734 0.6250 0.3203 0.1758 0.9180 0.9180 0.7812https://blogs.mathworks.com/cleve/files/nytcolors_blog_02.png show_rgb(nytco)drawnowhttps://blogs.mathworks.com/cleve/files/nytcolors_blog_03.png Tangrams

In October, I used NYT colors for the kitty in my blog post about Tangrams (https://blogs.mathworks.com/cleve/2025/10/23/tangram-puzzles).

https://blogs.mathworks.com/cleve/files/kitty.gif

NYT Qube

The NYT colors give the Rubiks Cube (https://blogs.mathworks.com/cleve/2022/05/04/qube-the-movie/) a new look.

https://blogs.mathworks.com/cleve/files/nyt_cube.gif

Gallery

The MiniGallery (https://blogs.mathworks.com/cleve/2023/06/28/minigallery-sampler-of-matlab-test-matrices/) with NYT colors.

https://blogs.mathworks.com/cleve/files/nyt_minigallery.png

fftmatrix

The Fast Finite Fourier Matrix (https://blogs.mathworks.com/cleve/2014/09/29/finite-fourier-transform-matrix) with the NYT colors.

https://blogs.mathworks.com/cleve/files/fftmatrix.gif


Get the MATLAB code (requires JavaScript) (javascript:grabCode_4f2b9a66df304463b8c4fa2d059695c0())

Published with MATLAB® R2025a





More... (https://blogs.mathworks.com/cleve/2025/12/23/new-york-times-colors/?s_tid=feedtopost)