Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
MoleculePlot
  • See Also
    • MoleculePlot3D
    • Molecule
    • MoleculeRecognize
    • AtomLabels
    • AtomLabelStyle
    • BondLabels
    • BondLabelStyle

    • Entity Types
    • Chemical
    • Protein
  • Related Guides
    • Physics & Chemistry: Data and Computation
    • Molecular Structure & Computation
    • See Also
      • MoleculePlot3D
      • Molecule
      • MoleculeRecognize
      • AtomLabels
      • AtomLabelStyle
      • BondLabels
      • BondLabelStyle

      • Entity Types
      • Chemical
      • Protein
    • Related Guides
      • Physics & Chemistry: Data and Computation
      • Molecular Structure & Computation

MoleculePlot[mol]

creates a two-dimensional structure diagram of the molecule mol.

MoleculePlot[mol,patt]

creates a diagram of mol where all atoms and bonds matching the pattern patt are highlighted.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Options  
AtomLabels  
AtomLabelStyle  
BondLabels  
Show More Show More
BondLabelStyle  
ColorRules  
PlotLegends  
PlotTheme  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • MoleculePlot3D
    • Molecule
    • MoleculeRecognize
    • AtomLabels
    • AtomLabelStyle
    • BondLabels
    • BondLabelStyle

    • Entity Types
    • Chemical
    • Protein
  • Related Guides
    • Physics & Chemistry: Data and Computation
    • Molecular Structure & Computation
    • See Also
      • MoleculePlot3D
      • Molecule
      • MoleculeRecognize
      • AtomLabels
      • AtomLabelStyle
      • BondLabels
      • BondLabelStyle

      • Entity Types
      • Chemical
      • Protein
    • Related Guides
      • Physics & Chemistry: Data and Computation
      • Molecular Structure & Computation

MoleculePlot

MoleculePlot[mol]

creates a two-dimensional structure diagram of the molecule mol.

MoleculePlot[mol,patt]

creates a diagram of mol where all atoms and bonds matching the pattern patt are highlighted.

Details and Options

  • MoleculePlot returns a Graphics expression.
  • If the molecule does not have structure diagram coordinates, they will be generated automatically.
  • mol can be a Molecule object or something that can be easily converted to one, such as a systematic chemical name, a "Chemical" entity, a BioSequence or an ExternalIdentifier.
  • MoleculePlot[MoleculePattern[…]] will return a depiction of the given molecule pattern.
  • Possible forms for patt include:
  • nthe index of a particular atom
    Atom[…]a pattern for an atom
    Bond[…]a pattern for a bond
    MoleculePattern[…]a pattern for a molecule substructure
    {patt1,patt2,…}a list of patterns
    <|label1patt1,…|>an Association of labels and patterns
  • MoleculePlot has the same options as Graphics, with the following additions and changes: [List of all options]
  • AtomLabels Automaticlabels and label placements for atoms
    AtomLabelStyle Automaticstyle to use for atom labels
    BondLabels Nonelabels and label placements for bonds
    BondLabelStyle Automaticstyle to use for bond labels
    ColorRules Automatica list of rules {elem1->col1,…} dictating which colors to use for atomic elements
    IncludeHydrogensAutomaticwhether to show hydrogen atoms
    PlotLegends Nonelegends for highlights
    PlotTheme $PlotThemeoverall theme for the plot
  • Supported plot themes include:
  • "AllAtom"display all hydrogens
    "Aromatic"aromatic bonds are shown as dashed lines or circles
    "HeavyAtom"hydrogen atoms are elided or combined with the connected heavy atom
    "Monochrome"all text and graphics are shown in black
  • Typical settings for PlotLegends include:
  • Noneno legend
    Automaticautomatically determine legend
    {lbl1,lbl2,…}use lbl1, lbl2, … as legend labels
    Placed[lspec,…]specify placement for legend
  • List of all options

    • AlignmentPointCenterthe default point in the graphic to align with
      AspectRatioAutomaticratio of height to width
      AtomLabelsAutomaticlabels and label placements for atoms
      AtomLabelStyleAutomaticstyle to use for atom labels
      AxesFalsewhether to draw axes
      AxesLabelNoneaxes labels
      AxesOriginAutomaticwhere axes should cross
      AxesStyle{}style specifications for the axes
      BackgroundNonebackground color for the plot
      BaselinePositionAutomatichow to align with a surrounding text baseline
      BaseStyle{}base style specifications for the graphic
      BondLabelsNonelabels and label placements for bonds
      BondLabelStyleAutomaticstyle to use for bond labels
      ColorRulesAutomatica list of rules {elem1->col1,…} dictating which colors to use for atomic elements
      ContentSelectableAutomaticwhether to allow contents to be selected
      CoordinatesToolOptionsAutomaticdetailed behavior of the coordinates tool
      Epilog{}primitives rendered after the main plot
      FormatTypeTraditionalFormthe default format type for text
      FrameFalsewhether to put a frame around the plot
      FrameLabelNoneframe labels
      FrameStyle{}style specifications for the frame
      FrameTicksAutomaticframe ticks
      FrameTicksStyle{}style specifications for frame ticks
      GridLinesNonegrid lines to draw
      GridLinesStyle{}style specifications for grid lines
      ImageMargins0.the margins to leave around the graphic
      ImagePaddingAllwhat extra padding to allow for labels etc.
      ImageSizeAutomaticthe absolute size at which to render the graphic
      IncludeHydrogensAutomaticwhether to show hydrogen atoms
      LabelStyle{}style specifications for labels
      MethodAutomaticdetails of graphics methods to use
      PlotLabelNonean overall label for the plot
      PlotLegendsNonelegends for highlights
      PlotRangeAllrange of values to include
      PlotRangeClippingFalsewhether to clip at the plot range
      PlotRangePaddingAutomatichow much to pad the range of values
      PlotRegionAutomaticthe final display region to be filled
      PlotTheme$PlotThemeoverall theme for the plot
      PreserveImageOptionsAutomaticwhether to preserve image options when displaying new versions of the same graphic
      Prolog{}primitives rendered before the main plot
      RotateLabelTruewhether to rotate y labels on the frame
      TicksAutomaticaxes ticks
      TicksStyle{}style specifications for axes ticks

Examples

open all close all

Basic Examples  (2)

Create a molecule and plot it:

Highlight the first and third atoms:

Highlight all oxygen atoms:

Highlight two different patterns:

Scope  (2)

A pattern can match one or multiple positions in a molecule:

Highlight each carbonyl separately:

Highlight each carbonyl as a single color:

Highlight several patterns:

Options  (7)

AtomLabels  (1)

Label all atoms by their index:

Label only chlorine atoms by their index:

Label non-hydrogen atoms by their hybridization:

AtomLabelStyle  (1)

Set all labels to have the same style:

Set the label style depending on atom type:

BondLabels  (1)

Label all bonds by their index:

Label only bonds to chlorine atoms by their bond type:

BondLabelStyle  (1)

Give all bond labels the same style:

Label bonds differently based on their atoms:

ColorRules  (1)

Specify different colors for atomic elements:

PlotLegends  (1)

Use placeholders for plot legends:

Use the expressions to label the highlights:

PlotTheme  (1)

By default, aromatic bonds are shown in their delocalized Kekule form. Use the "Aromatic" plot theme to show which bonds are aromatic. Phenyl rings are shown with a circle to indicate the delocalized bonding electrons. Aromatic heterocycles use dashed lines for aromatic bonds:

Combine different plot themes:

See Also

MoleculePlot3D  Molecule  MoleculeRecognize  AtomLabels  AtomLabelStyle  BondLabels  BondLabelStyle

Entity Types: Chemical  Protein

Function Repository: MoleculeValuePlot  SmilesPlot  BioSequenceMoleculePlot

Related Guides

    ▪
  • Physics & Chemistry: Data and Computation
  • ▪
  • Molecular Structure & Computation

History

Introduced in 2019 (12.0) | Updated in 2021 (13.0)

Wolfram Research (2019), MoleculePlot, Wolfram Language function, https://reference.wolfram.com/language/ref/MoleculePlot.html (updated 2021).

Text

Wolfram Research (2019), MoleculePlot, Wolfram Language function, https://reference.wolfram.com/language/ref/MoleculePlot.html (updated 2021).

CMS

Wolfram Language. 2019. "MoleculePlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/MoleculePlot.html.

APA

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

BibTeX

@misc{reference.wolfram_2025_moleculeplot, author="Wolfram Research", title="{MoleculePlot}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/MoleculePlot.html}", note=[Accessed: 04-February-2026]}

BibLaTeX

@online{reference.wolfram_2025_moleculeplot, organization={Wolfram Research}, title={MoleculePlot}, year={2021}, url={https://reference.wolfram.com/language/ref/MoleculePlot.html}, note=[Accessed: 04-February-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English