.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEGetMoleculeScale

.. _OEDepict_OEGetMoleculeScale:


.. oe:function:: OEGetMoleculeScale


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

      .. oe:api::

         double OEGetMoleculeScale(const OEChem::OEMolBase& mol,
                                   const OE2DMolDisplayOptions& opts)

   .. oe:language:: python

      .. oe:api:: python

         OEGetMoleculeScale(mol: Union[OEGraphMol,OEMol,OEQMol],
                            opts: OE2DMolDisplayOptions) -> float

   Estimates the scaling factor of the molecule depiction based on the
   parameters stored in given :ref:`OE2DMolDisplayOptions <OEDepict_OE2DMolDisplayOptions>`
   object.

   *mol*
     The molecule of which scaling factor is determined.

   *opts*
     The :ref:`OE2DMolDisplayOptions <OEDepict_OE2DMolDisplayOptions>` object that stores
     the parameters that determine the scaling factor
     (such as width and height).

   .. seealso::

      * :ref:`section_mol_display_size` section
