| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/lib/python3.9/dist-packages/matplotlib/__pycache__/ |
Upload File : |
a
���h` � @ s` d dl Z ddlmZ dd� ZG dd� d�ZG dd � d e�ZG d
d� de�Zdd
� Ze� Z Z
dS )� N� )�_apic s � fdd�}|S )a�
Decorator for defining the kwdoc documentation of artist properties.
This decorator can be applied to artist property setter methods.
The given text is stored in a private attribute ``_kwarg_doc`` on
the method. It is used to overwrite auto-generated documentation
in the *kwdoc list* for artists. The kwdoc list is used to document
``**kwargs`` when they are properties of an artist. See e.g. the
``**kwargs`` section in `.Axes.text`.
The text should contain the supported types, as well as the default
value if applicable, e.g.:
@_docstring.kwarg_doc("bool, default: :rc:`text.usetex`")
def set_usetex(self, usetex):
See Also
--------
matplotlib.artist.kwdoc
c s
� | _ | S �N)Z
_kwarg_doc)�func��text� �?/usr/local/lib/python3.9/dist-packages/matplotlib/_docstring.py� decorator s zkwarg_doc.<locals>.decoratorr )r r
r r r � kwarg_doc s r c @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �SubstitutionaG
A decorator that performs %-substitution on an object's docstring.
This decorator should be robust even if ``obj.__doc__`` is None (for
example, if -OO was passed to the interpreter).
Usage: construct a docstring.Substitution with a sequence or dictionary
suitable for performing substitution; then decorate a suitable function
with the constructed object, e.g.::
sub_author_name = Substitution(author='Jason')
@sub_author_name
def some_function(x):
"%(author)s wrote this function"
# note that some_function.__doc__ is now "Jason wrote this function"
One can also use positional arguments::
sub_first_last_names = Substitution('Edgar Allen', 'Poe')
@sub_first_last_names
def some_function(x):
"%s %s wrote the Raven"
c O s |r|rt d��|p|| _d S )Nz+Only positional or keyword args are allowed)� TypeError�params��self�args�kwargsr r r �__init__= s zSubstitution.__init__c C s |j rt�|j �| j |_ |S r )�__doc__�inspect�cleandocr )r r r r r �__call__B s zSubstitution.__call__c O s | j j|i |�� dS )zW
Update ``self.params`` (which must be a dict) with the supplied args.
N)r �updater r r r r G s zSubstitution.updateN)�__name__�
__module__�__qualname__r r r r r r r r r "