WOLFRAM

TernaryListPlot
TernaryListPlot

Updatedshow changeshide changes[Experimental]

TernaryListPlot[{{u1,v1,w1},,{un,vn,wn}}]

plots a list of points with specified u, v and w coordinates in a barycentric coordinate system.

TernaryListPlot[{data1,data2,}]

plots a ternary plot with several datasets datai.

Details and Options

Examples

open allclose all

Basic Examples  (4)Summary of the most common use cases

Generate a ternary plot for a list of points whose values add up to 1:

Out[1]=1

Plot several sets of data:

Out[1]=1

Label points with indices:

Out[1]=1

Use plot markers to identify different sets:

Out[1]=1

Scope  (35)Survey of the scope of standard use cases

General Data  (5)

Plot sets corresponding to fixed fractions of the first element "A":

Out[1]=1

Second element "B":

Out[2]=2

Third element "C":

Out[3]=3

Plot sets corresponding to fixed ratios of the element "B" to "C":

Out[1]=1

"A" to "B":

Out[2]=2

"A" to "C":

Out[3]=3

Each data point is independently normalized so the elements sum to 1:

Out[2]=2
Out[4]=4
Out[5]=5

Nonreal and negative data is taken to be missing:

Out[1]=1
Out[2]=2

Multiple datasets are styled differently:

Out[1]=1

Tabular Data  (1)

Get tabular data about grams of certain nutrients per 100 grams of different foods:

Out[1]=1

Plot a TernaryListPlot with grams of fat, protein and carbohydrates per each food:

Out[2]=2

Use PivotToColumns to create columns of fat, carbs and protein per food type:

Out[3]=3

Plot fats, proteins and carbs for each type of food:

Out[4]=4

Special Data  (4)

Plot data with units:

Out[2]=2

Specify the desired target units:

Out[3]=3

Use data with quantities:

Out[1]=1

Specify strings to use as labels:

Out[1]=1

Specify a location for labels:

Out[1]=1

Data Wrappers  (5)

Use wrappers on individual data, datasets or collections of datasets:

Out[1]=1

Wrappers can be nested:

Out[1]=1

Call out a point:

Out[1]=1

Set a Style for each dataset:

Out[1]=1

Apply nested wrappers:

Out[1]=1

Labeling and Legending  (12)

Label individual points:

Out[1]=1

Label every point:

Out[1]=1

Label data with Labeled:

Out[1]=1

Label data with PlotLabels:

Out[1]=1

Label data with Callout:

Out[1]=1

Use Placed to control label positions:

Out[2]=2

Label points at automatically optimized positions:

Out[2]=2

Specify PlotLegends for each dataset:

Out[3]=3

Specify the maximum size of labels:

Out[2]=2

Use the full label:

Out[3]=3

For dense sets of points, some labels may be turned into tooltips by default:

Out[2]=2

Increasing the size of the plot will show more labels:

Out[3]=3

Include legends for each dataset:

Out[1]=1

Use Legended to provide a legend to a specific dataset:

Out[2]=2

Use Placed to change the legend location:

Out[3]=3

Use association keys as labels:

Out[1]=1

Presentation  (8)

Multiple sets are automatically colored to be distinct:

Out[2]=2

Provide explicit styling to different sets:

Out[3]=3

Color points with ColorFunction:

Out[2]=2
Out[3]=3

Color by bottom, right and left coordinates:

Out[1]=1

Use different plot markers:

Out[1]=1
Out[2]=2

Join a list of points:

Out[2]=2

Style datasets or collections of datasets:

Out[2]=2

Specify grid lines:

Out[1]=1

Show no frames:

Out[2]=2

Set FrameTicksStyle:

Out[3]=3

Show barycentric axes:

Out[4]=4

Style axes:

Out[5]=5

Show axes and set the frame off to show the 0% lines:

Out[6]=6

Options  (36)Common values & functionality for each option

Axes  (1)

Show barycentric axes:

Out[2]=2

Set barycentric axes for given coordinates:

Out[3]=3

AxesStyle  (1)

Style axes:

Out[1]=1

Background  (1)

Change the overall background color:

Out[2]=2

Change the backdrop color:

Out[3]=3

ColorFunction  (3)

Color points by the x direction value:

Out[2]=2

Color points by a function:

Out[3]=3

Color by bottom, right and left coordinates:

Out[2]=2

ColorFunction overrides PlotStyle:

Out[2]=2

ColorFunctionScaling  (2)

Use ColorFunctionScaling False to get an unscaled value:

Out[1]=1

ColorFunctionScaling by default is True:

Out[1]=1

Frame  (1)

Show frames:

Out[2]=2

Show no frames:

Out[3]=3

Show part of frames:

Out[4]=4

Show the 0% lines when the frame is off:

Out[5]=5

FrameLabel  (1)

Place labels on each frame:

Out[2]=2

FrameStyle  (1)

Style frames:

Out[2]=2

Automatic GridLinesStyle are inherited from FrameStyle:

Out[3]=3

Change frame thickness:

Out[4]=4

FrameTicks  (1)

Change tick positions:

Out[1]=1

FrameTicksStyle  (1)

Change tick styles:

Out[2]=2
Out[3]=3

GridLines  (2)

Draw grid lines:

Out[2]=2

No grid lines:

Out[3]=3

Draw grid lines at specific positions:

Out[2]=2
Out[3]=3

Draw styled grid lines:

Out[4]=4

GridLines overrides GridLinesStyle:

Out[5]=5

GridLinesStyle  (1)

Style grid lines:

Out[2]=2

Style grid lines in each direction:

Out[3]=3

Joined  (2)

Points are joined in order of data:

Out[1]=1

Show points when joined:

Out[1]=1

Method  (5)

Set highlighting:

Out[1]=1

Change highlight color:

Out[1]=1

Use highlighting for axes and frames:

Out[1]=1

Change the background color of the area with data:

Out[1]=1

The backdrop area is associated with PlotRange:

Out[1]=1

PlotLabels  (3)

Label points at automatically optimized positions:

Out[1]=1

Use Placed to control label positions:

Out[2]=2

Label two sets of data:

Out[2]=2

PlotLegends  (1)

Show Automatic legends for different datasets:

Out[3]=3

Specify legends for each dataset:

Out[4]=4

Specify legends for each dataset using PlotMarkers:

Out[5]=5

PlotMarkers  (3)

Use a default sequence of shapes to distinguish datasets:

Out[1]=1

Do not use plot markers:

Out[2]=2

Use text or typeset labels to distinguish datasets:

Out[3]=3
Out[4]=4


Use any graphic to distinguish datasets:

Out[5]=5

Control font sizes for text markers:

Out[1]=1

Control sizes for graphics markers relative to the plot:

Out[1]=1

Control absolute sizes for graphics markers:

Out[2]=2

Use preset names to control graphics marker size:

Out[3]=3

PlotRange  (1)

Plot range by default is from 0 to 1 in all directions:

Out[1]=1

PlotStyle  (3)

Change the size of points:

Out[1]=1

Color each dataset:

Out[1]=1

Color datasets cyclically:

Out[1]=1

TargetUnits  (1)

Plot data with units:

Out[1]=1

Specify the desired target units:

Out[2]=2

TernaryPlotCorners  (1)

By default, the plot corners are positioned anticlockwise:

Out[2]=2

Position the plot corners clockwise:

Out[3]=3

Place the corners at given coordinates:

Out[4]=4

Applications  (7)Sample problems that can be solved with this function

Geology  (2)

Plot a soil texture triangle:

Out[1]=1

Plot a soil texture triangle with shaded regions:

Out[1]=1

Agriculture  (2)

Plot the fraction of fertilizers used each year:

Out[1]=1

Show the planted fractions of three crops, corn, soybeans and wheat:

Out[1]=1

Other  (3)

Show the sources of electricity for countries around the world:

Out[1]=1

Show the fraction of child, adult and elderly populations around the world:

Out[1]=1

Show the fractions of fat, carbohydrates and proteins in a variety of foods:

Out[1]=1
Wolfram Research (2022), TernaryListPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/TernaryListPlot.html (updated 2025).
Wolfram Research (2022), TernaryListPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/TernaryListPlot.html (updated 2025).

Text

Wolfram Research (2022), TernaryListPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/TernaryListPlot.html (updated 2025).

Wolfram Research (2022), TernaryListPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/TernaryListPlot.html (updated 2025).

CMS

Wolfram Language. 2022. "TernaryListPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/TernaryListPlot.html.

Wolfram Language. 2022. "TernaryListPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/TernaryListPlot.html.

APA

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

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

BibTeX

@misc{reference.wolfram_2025_ternarylistplot, author="Wolfram Research", title="{TernaryListPlot}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/TernaryListPlot.html}", note=[Accessed: 30-April-2025 ]}

@misc{reference.wolfram_2025_ternarylistplot, author="Wolfram Research", title="{TernaryListPlot}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/TernaryListPlot.html}", note=[Accessed: 30-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_ternarylistplot, organization={Wolfram Research}, title={TernaryListPlot}, year={2025}, url={https://reference.wolfram.com/language/ref/TernaryListPlot.html}, note=[Accessed: 30-April-2025 ]}

@online{reference.wolfram_2025_ternarylistplot, organization={Wolfram Research}, title={TernaryListPlot}, year={2025}, url={https://reference.wolfram.com/language/ref/TernaryListPlot.html}, note=[Accessed: 30-April-2025 ]}