PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training & Free Seminars
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Visualization and Graphics
>
Graphics Options & Styling
>
Colors
>
Color Schemes
>
ColorDataFunction
>
Mathematica
>
Data Manipulation
>
Image Processing & Analysis
>
Color Processing
>
Colors
>
Color Schemes
>
ColorDataFunction
>
Mathematica
>
Visualization and Graphics
>
Symbolic Graphics Language
>
Graphics Directives
>
Colors
>
Color Schemes
>
ColorDataFunction
>
BUILT-IN MATHEMATICA SYMBOL
ColorData
Blend
ColorFunction
InterpolatingFunction
See Also »
|
Color Schemes
More About »
ColorDataFunction
ColorDataFunction
is a function that represents a color scheme.
MORE INFORMATION
ColorDataFunction
works like
Function
.
ColorDataFunction
[
...
][
par
]
finds the color corresponding to parameter
par
in the color scheme represented by the
ColorDataFunction
.
ColorData
gives a
ColorDataFunction
object.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
ColorData
returns a
ColorDataFunction
object:
Return a color when the specific parameters are applied:
Define a color function for the plot:
ColorData
returns a
ColorDataFunction
object:
In[1]:=
Out[1]=
Return a color when the specific parameters are applied:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Define a color function for the plot:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Scope
(5)
ColorData
returns a
ColorDataFunction
object:
ColorDataFunction
returns RGB colors when applied to values within a specific range:
Gradients and physical schemes are defined on continuous intervals:
Indexed schemes are defined at discrete values:
Named schemes are defined at specific sets of values:
Properties & Relations
(2)
ColorDataFunction
from gradients and physical schemes clips values outside of the ranges:
ColorDataFunction
from indexed schemes repeats the colors periodically:
Possible Issues
(1)
In a plot with multiple
ColorFunction
slots, the first slot is chosen, if not specified:
Specify a pure function so that the plot is colored by height values:
Neat Examples
(1)
A raster image of the web-safe colors:
SEE ALSO
ColorData
Blend
ColorFunction
InterpolatingFunction
MORE ABOUT
Color Schemes
New in 6