TernaryListPlot

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)

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

Plot several sets of data:

Label points with indices:

Use plot markers to identify different sets:

Scope  (34)

General Data  (5)

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

Second element "B":

Third element "C":

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

"A" to "B":

"A" to "C":

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

Nonreal and negative data is taken to be missing:

Multiple datasets are styled differently:

Special Data  (4)

Plot data with units:

Specify the desired target units:

Use data with quantities:

Specify strings to use as labels:

Specify a location for labels:

Data Wrappers  (5)

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

Wrappers can be nested:

Call out a point:

Set a Style for each dataset:

Apply nested wrappers:

Labeling and Legending  (12)

Label individual points:

Label every point:

Label data with Labeled:

Label data with PlotLabels:

Label data with Callout:

Use Placed to control label positions:

Label points at automatically optimized positions:

Specify PlotLegends for each dataset:

Specify the maximum size of labels:

Use the full label:

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

Increasing the size of the plot will show more labels:

Include legends for each dataset:

Use Legended to provide a legend to a specific dataset:

Use Placed to change the legend location:

Use association keys as labels:

Presentation  (8)

Multiple sets are automatically colored to be distinct:

Provide explicit styling to different sets:

Color points with ColorFunction:

Color by bottom, right and left coordinates:

Use different plot markers:

Join a list of points:

Style datasets or collections of datasets:

Specify grid lines:

Show no frames:

Set FrameTicksStyle:

Show barycentric axes:

Style axes:

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

Options  (36)

Axes  (1)

Show barycentric axes:

Set barycentric axes for given coordinates:

AxesStyle  (1)

Style axes:

Background  (1)

Change the overall background color:

Change the backdrop color:

ColorFunction  (3)

Color points by the x direction value:

Color points by a function:

Color by bottom, right and left coordinates:

ColorFunction overrides PlotStyle:

ColorFunctionScaling  (2)

Use ColorFunctionScaling False to get an unscaled value:

ColorFunctionScaling by default is True:

Frame  (1)

Show frames:

Show no frames:

Show part of frames:

Show the 0% lines when the frame is off:

FrameLabel  (1)

Place labels on each frame:

FrameStyle  (1)

Style frames:

Automatic GridLinesStyle are inherited from FrameStyle:

Change frame thickness:

FrameTicks  (1)

Change tick positions:

FrameTicksStyle  (1)

Change tick styles:

GridLines  (2)

Draw grid lines:

No grid lines:

Draw grid lines at specific positions:

Draw styled grid lines:

GridLines overrides GridLinesStyle:

GridLinesStyle  (1)

Style grid lines:

Style grid lines in each direction:

Joined  (2)

Points are joined in order of data:

Show points when joined:

Method  (5)

Set highlighting:

Change highlight color:

Use highlighting for axes and frames:

Change the background color of the area with data:

The backdrop area is associated with PlotRange:

PlotLabels  (3)

Label points at automatically optimized positions:

Use Placed to control label positions:

Label two sets of data:

PlotLegends  (1)

Show Automatic legends for different datasets:

Specify legends for each dataset:

Specify legends for each dataset using PlotMarkers:

PlotMarkers  (3)

Use a default sequence of shapes to distinguish datasets:

Do not use plot markers:

Use text or typeset labels to distinguish datasets:


Use any graphic to distinguish datasets:

Control font sizes for text markers:

Control sizes for graphics markers relative to the plot:

Control absolute sizes for graphics markers:

Use preset names to control graphics marker size:

PlotRange  (1)

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

PlotStyle  (3)

Change the size of points:

Color each dataset:

Color datasets cyclically:

TargetUnits  (1)

Plot data with units:

Specify the desired target units:

TernaryPlotCorners  (1)

By default, the plot corners are positioned anticlockwise:

Position the plot corners clockwise:

Place the corners at given coordinates:

Applications  (7)

Geology  (2)

Plot a soil texture triangle:

Plot a soil texture triangle with shaded regions:

Agriculture  (2)

Plot the fraction of fertilizers used each year:

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

Other  (3)

Show the sources of electricity for countries around the world:

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

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

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

Text

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

CMS

Wolfram Language. 2022. "TernaryListPlot." Wolfram Language & System Documentation Center. Wolfram Research. 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

BibTeX

@misc{reference.wolfram_2024_ternarylistplot, author="Wolfram Research", title="{TernaryListPlot}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/TernaryListPlot.html}", note=[Accessed: 11-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_ternarylistplot, organization={Wolfram Research}, title={TernaryListPlot}, year={2022}, url={https://reference.wolfram.com/language/ref/TernaryListPlot.html}, note=[Accessed: 11-October-2024 ]}