Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « matplotlib.pyplot »

Fonction getp - module matplotlib.pyplot

Signature de la fonction getp

def getp(obj, *args, **kwargs) 

Description

help(matplotlib.pyplot.getp)

Return the value of an `.Artist`'s *property*, or print all of them.

Parameters
----------
obj : `~matplotlib.artist.Artist`
    The queried artist; e.g., a `.Line2D`, a `.Text`, or an `~.axes.Axes`.

property : str or None, default: None
    If *property* is 'somename', this function returns
    ``obj.get_somename()``.

    If it's None (or unset), it *prints* all gettable properties from
    *obj*.  Many properties have aliases for shorter typing, e.g. 'lw' is
    an alias for 'linewidth'.  In the output, aliases and full property
    names will be listed as:

      property or alias = value

    e.g.:

      linewidth or lw = 2

See Also
--------
setp

Notes
-----

.. note::

    This is equivalent to `matplotlib.artist.getp`.


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé