ColorFunctionBinning

ColorFunctionBinning

is an option for plotting functions that divides values into a limited set of bins for styling.

Details

  • Possible settings for ColorFunctionBinning include:
  • Nonecontinuous range of values
    Automaticautomatically determined bins
    napproximately n equally spaced divisions
    "KMeans"use the k-means clustering algorithm to find the bins
    "Quantile"use quantiles to compute the bins
    {d}use bins with width d
    {min,max,d}use bins from min to max with width d
    {{b1,b2,}}use specific break points bi to separate the bins
    {"name",n}find n divisions using the named method
    fuse f[{v1,v2,}] to determine the bins
  • With binned color functions, the color function is sampled evenly based on the number of bins, not on their values.

Examples

open allclose all

Basic Examples  (2)

Use None to use a continuous range of colors:

Use colors corresponding to equal-width bins:

Scope  (5)

Specify how large the bins should be:

Use the k-means algorithm to find clusters of values:

Specify how many clusters to find:

Using "Quantile" will put approximately the same number of regions in each bin:

Some of the regions are small and may not be visible:

Color the regions according to what quartile they are in:

Specify the bin boundaries:

Possible Issues  (1)

Use colors corresponding to equal-width bins:

Wolfram Research (2020), ColorFunctionBinning, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorFunctionBinning.html.

Text

Wolfram Research (2020), ColorFunctionBinning, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorFunctionBinning.html.

CMS

Wolfram Language. 2020. "ColorFunctionBinning." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColorFunctionBinning.html.

APA

Wolfram Language. (2020). ColorFunctionBinning. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorFunctionBinning.html

BibTeX

@misc{reference.wolfram_2024_colorfunctionbinning, author="Wolfram Research", title="{ColorFunctionBinning}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ColorFunctionBinning.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_colorfunctionbinning, organization={Wolfram Research}, title={ColorFunctionBinning}, year={2020}, url={https://reference.wolfram.com/language/ref/ColorFunctionBinning.html}, note=[Accessed: 21-November-2024 ]}