![]() |
New York Times Colors - Cleve Moler on Mathematics and Computing
I admire the color scheme in the New York Times Games section and occasionally make it my colororder.
[IMG]https://blogs.mathworks.com/cleve/files/nytgames.png[/IMG] [URL]https://www.nytco.com/games[/URL] [B]Contents[/B] [LIST][*][URL="https://www.labfans.com/bbs/#b775e0cc-120e-443e-bfd3-b52055913abf"]Colormaps[/URL][*][URL="https://www.labfans.com/bbs/#4e281139-12a5-4b45-ab8b-4bfb541d60a8"]Palettes[/URL][*][URL="https://www.labfans.com/bbs/#d0394ce0-f6ca-4fe6-ba61-8fa91a5ec3bb"]Color Order[/URL][*][URL="https://www.labfans.com/bbs/#2162adb6-93bd-452b-966c-5a55d0f03577"]New York Times Games[/URL][*][URL="https://www.labfans.com/bbs/#10ebe126-c13a-4339-9b8e-8756acb5fb71"]NYT Color Order[/URL][*][URL="https://www.labfans.com/bbs/#76fc404c-4679-445e-97a1-06dc44e4130f"]Tangrams[/URL][*][URL="https://www.labfans.com/bbs/#8b2a0c9f-2665-4c02-bf8b-9aadc3783225"]NYT Qube[/URL][*][URL="https://www.labfans.com/bbs/#37f1ab87-cabe-44a9-bf78-64b50ecb933d"]Gallery[/URL][*][URL="https://www.labfans.com/bbs/#5e5bb717-8b3b-44ec-9916-a9db99920b34"]fftmatrix[/URL][/LIST][B]Colormaps[/B] 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"[IMG]https://blogs.mathworks.com/cleve/files/colormaps.gif[/IMG] [B]Palettes[/B] 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"[IMG]https://blogs.mathworks.com/cleve/files/palettes.gif[/IMG] [B]Color Order[/B] 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)[IMG]https://blogs.mathworks.com/cleve/files/nytcolors_blog_01.png[/IMG] closeallclear[B]New York Times Games[/B] 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." [B]NYT Color Order[/B] 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.7812[IMG]https://blogs.mathworks.com/cleve/files/nytcolors_blog_02.png[/IMG] show_rgb(nytco)drawnow[IMG]https://blogs.mathworks.com/cleve/files/nytcolors_blog_03.png[/IMG] [B]Tangrams[/B] In October, I used NYT colors for the kitty in my blog post about [URL="https://blogs.mathworks.com/cleve/2025/10/23/tangram-puzzles"]Tangrams[/URL]. [IMG]https://blogs.mathworks.com/cleve/files/kitty.gif[/IMG] [B]NYT Qube[/B] The NYT colors give the [URL="https://blogs.mathworks.com/cleve/2022/05/04/qube-the-movie/"]Rubiks Cube[/URL] a new look. [IMG]https://blogs.mathworks.com/cleve/files/nyt_cube.gif[/IMG] [B]Gallery[/B] The [URL="https://blogs.mathworks.com/cleve/2023/06/28/minigallery-sampler-of-matlab-test-matrices/"]MiniGallery[/URL] with NYT colors. [IMG]https://blogs.mathworks.com/cleve/files/nyt_minigallery.png[/IMG] [B]fftmatrix[/B] The [URL="https://blogs.mathworks.com/cleve/2014/09/29/finite-fourier-transform-matrix"]Fast Finite Fourier Matrix[/URL] with the NYT colors. [IMG]https://blogs.mathworks.com/cleve/files/fftmatrix.gif[/IMG] [RIGHT][COLOR=gray][I] [URL="javascript:grabCode_4f2b9a66df304463b8c4fa2d059695c0()"][I]Get the MATLAB code (requires JavaScript)[/I][/URL] Published with MATLAB® R2025a [/I][/COLOR][/RIGHT] [url=https://blogs.mathworks.com/cleve/2025/12/23/new-york-times-colors/?s_tid=feedtopost]More...[/url] |
| 所有时间均为北京时间。现在的时间是 03:29。 |
Powered by vBulletin
版权所有 ©2000 - 2026,Jelsoft Enterprises Ltd.