returns a graphical representation of the periodic table.
PeriodicTablePlot[EntityProperty["Elemment","prop"]]
gives the periodic table with elements colored according to the specified property.
PeriodicTablePlot[Entity["Element","elem"]]
shows the periodic table with the specified element highlighted.
PeriodicTablePlot[{elem1,elem2,…}]
highlights a list of elements.
PeriodicTablePlot[EntityClass["Element","class"]]
shows the periodic table with all elements in "class" highlighted.
PeriodicTablePlot
returns a graphical representation of the periodic table.
PeriodicTablePlot[EntityProperty["Elemment","prop"]]
gives the periodic table with elements colored according to the specified property.
PeriodicTablePlot[Entity["Element","elem"]]
shows the periodic table with the specified element highlighted.
PeriodicTablePlot[{elem1,elem2,…}]
highlights a list of elements.
PeriodicTablePlot[EntityClass["Element","class"]]
shows the periodic table with all elements in "class" highlighted.
Details and Options
- PeriodicTablePlot is used to display the periodic table of elements.
- When a property is used to color the table, the property values are shown as tooltips for each element.
- PeriodicTablePlot has the same options as Graphics, with the following additions and changes:
-
ColorFunction Automatic PlotLegends Automatic -
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool Epilog {} primitives rendered after the main plot FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic LabelStyle {} style specifications for labels Method Automatic details of graphics methods to use PlotLabel None an overall label for the plot PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RotateLabel True whether to rotate y labels on the frame Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks
List of all options
Examples
open all close allBasic Examples (3)
Scope (3)
Highlight a period in the periodic table:
PeriodicTablePlot[EntityClass["Element", "Period4"]]Use FreeformEvaluate to specify elements using common names:
PeriodicTablePlot[{[carbon], [nitrogen], [oxygen], [phosphorus], [hydrogen], [chlorine]}]Highlight a group in the periodic table:
PeriodicTablePlot[EntityClass["Element", "NobleGas"]]Generalizations & Extensions (1)
Plot the structure diagram for an organohalide:
MoleculePlot[mol = Molecule[{"O", "C", "O", "C", "C", Atom["C", "HydrogenCount" -> 1], "C", "O", "N",
Atom["C", "HydrogenCount" -> 1], "C", "O", "N", "C", "C", "O", "O", "C", "S", "C",
Atom["C", "HydrogenCount" -> 1], "Br", "Cl", "F", "F", "N"},
{Bond[{1, 2}, ... 6,
"Direction" -> "Clockwise"], Association["StereoType" -> "Tetrahedral", "ChiralCenter" -> 10,
"Direction" -> "Counterclockwise"], Association["StereoType" -> "Tetrahedral",
"ChiralCenter" -> 21, "Direction" -> "Clockwise"]}}]]Highlight all the elements in the molecule in the periodic table:
PeriodicTablePlot[mol["Elements"]]Options (7)
Background (1)
ColorFunction (3)
Use a different color function for the periodic table:
PeriodicTablePlot[ColorFunction -> "BrightBands"]Use a color function with a property that returns categorical data:
PeriodicTablePlot[EntityProperty["Element", "Group"], ColorFunction -> ColorData[97]]Use a color function with a property that returns categorical data:
PeriodicTablePlot[EntityProperty["Element", "Electronegativity"], ColorFunction -> "AvocadoColors"]PlotLabel (1)
PlotLegends (2)
With the default setting of PlotLegendsAutomatic, some inputs do not show a legend:
PeriodicTablePlot[]Use PlotLegendsTrue to force a legend:
PeriodicTablePlot[PlotLegends -> True]With the default setting of PlotLegendsAutomatic, some inputs show a legend by default:
PeriodicTablePlot[EntityProperty["Element", "AtomicRadius"]]Use PlotLegendsFalse to disable automatic plot legends:
PeriodicTablePlot[EntityProperty["Element", "AtomicRadius"], PlotLegends -> False]Related Guides
History
Text
Wolfram Research (2026), PeriodicTablePlot, Wolfram Language function, https://reference.wolfram.com/language/ref/PeriodicTablePlot.html.
CMS
Wolfram Language. 2026. "PeriodicTablePlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PeriodicTablePlot.html.
APA
Wolfram Language. (2026). PeriodicTablePlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PeriodicTablePlot.html
BibTeX
@misc{reference.wolfram_2026_periodictableplot, author="Wolfram Research", title="{PeriodicTablePlot}", year="2026", howpublished="\url{https://reference.wolfram.com/language/ref/PeriodicTablePlot.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_periodictableplot, organization={Wolfram Research}, title={PeriodicTablePlot}, year={2026}, url={https://reference.wolfram.com/language/ref/PeriodicTablePlot.html}, note=[Accessed: 12-June-2026]}