.. # split from OESystemFunctions.rst:7

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEAddContour

.. oe:function:: OEAddContour

   .. oe:language:: c++ java csharp

      .. oe:api::

         void OEAddContour(OEGridAbstractBase& grid, float level,
                           const OEColor& c)

   .. oe:language:: python

      .. oe:api:: python

         OEAddContour(grid: OEGridAbstractBase, level: float, c: OEColor) -> None

   Adds a grid contour at 'level' to the 'grid'  (:ref:`OEGridAbstractBase <OESystem_OEGridAbstractBase>`)
   with the color 'c'.

   .. note::

     Contours are only persistent if written to OEBinary (``.oeb``).

   .. seealso::

      * :oe:func:`OESystem::OEGetContourLevel`
      * :oe:func:`OESystem::OEGetContourColor`
      * :oe:func:`OESystem::OENumContours`

