I did not intend to write a comprehensive analysis but give some hint to your subproblems.
Why does the colors vary so much depending on the color model for the predefined colors?
We all agree that by red
we mean the reddest color in the current space. (Intuitively there must be something representing that color, either named red
or reddest
.) But the fact is that, even the phrase reddest is well-defined, the reddest color varies from space to space. Some color spacess, for instance the Lab-family, do not contain the reddest but in which the red could be as red as you wish.
How are the default values chosen? To they follow a specific color model?
Some color spaces are called absolute for their colors being unambiguous. For example when saying #FF0000
in AdobeRGB, I am indicating that red , a color stimulating people's optic nerves in that way.
For an absolute color space, colors are chosen by the agency developing that space. For a non-absolute color space you need to associate it to an absolute one, since then the colors are determined.
What color model should I choose?
Depends on what are you doing. Different models are developed for different purpose. The roughest list is
- For screens: RGB
- For printers: CMYK
Why is Cyan in CMYK blue?
Well it is blue as an adjective but not blue
in RGB. cyan
(CMYK) is a color that seems like between yellow
(RGB) and blue
(RGB). And cyan
(RGB) is defined as #00FFFF
(RGB)
Which color model is best for printing?
CMYK
Pantone
Nowadays computers/printers are smart enough to translate between color spaces. All you need to do is to choose a color from an space and declare the color-space pair.
The only problem is that your screen/printer may not be able to display/print the absolute color properly. This is a hardware issue and color models cannot help.
If you look at p. 12 of the design guide, the colours in the "Full color insignia" seems to be darker then in the logo on your slides - or on the logos which one finds on the internet.
Workaround:
I took the .svg
of the meatball logo from Wikipedia and opened it with inkscape. For example for the blue area, I see the following values:
Either use these values for defining the beamer colours or take the values from the style guide and adjust the image accordingly.
\documentclass{beamer}
\useoutertheme{infolines}
\definecolor{NASAred}{RGB}{238, 41, 61}
\definecolor{NASAblue}{RGB}{26, 93, 173}
\setbeamercolor{title}{bg=NASAblue, fg=white} % title block on first slide
\setbeamercolor{palette primary}{bg=NASAblue, fg=white} %right-hand side of bottom
\setbeamercolor{palette secondary}{bg=NASAred, fg=white} % center bottom
\setbeamercolor{palette tertiary}{bg=NASAblue,fg=white} % left bottom
\setbeamercolor{palette quaternary}{bg=NASAred,fg=white} %
\setbeamercolor{structure}{fg=NASAblue} % box headings
\setbeamercolor{section in toc}{fg=NASAblue} % TOC sections
\setbeamercolor{subsection in head/foot}{bg=NASAred,fg=white} %
\setbeamercolor{item projected}{fg=NASAblue, bg=white} %
\setbeamercolor{frametitle}{fg=NASAblue,bg=white} %
\setbeamercolor{local structure}{fg=NASAblue} %
\setbeamercolor{item projected}{fg=NASAblue,bg=white} %
\setbeamertemplate{itemize item}{\color{NASAblue}$\bullet$} %
\setbeamertemplate{itemize subitem}{\color{NASAblue}\scriptsize{$\bullet$}}%
\title{Text}
\begin{document}
\begin{frame}
\titlepage
\centering
\includegraphics[width=.3\textwidth]{2000px-NASA_logo}
\end{frame}
\end{document}
(Logo file taken from https://upload.wikimedia.org/wikipedia/commons/e/e5/NASA_logo.svg)
Best Answer
You can make a colour from the colormap available as
mapped color
by calling the macro\pgfplotscolormapdefinemappedcolor{<value>}
, where<value>
is a number between 0 and 1000 that is mapped linearly into the current color map.In order to use different colours for different plots, this macro needs to be called within
execute at begin plot visualization
, otherwise all the plots end up with the same colour: