|
Server : Apache System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64 User : equistyl ( 1341) PHP Version : 8.1.30 Disable Function : NONE Directory : /lib64/python2.7/site-packages/matplotlib/ |
Upload File : |
�
r`]c @ sV d Z d d l Z d d l m Z d d l m Z d d l j Z d � Z
d e f d � � YZ d e f d � � YZ
d
e
f d � � YZ d e
f d
� � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( sZ
This module defines default legend handlers.
Legend handlers are expected to be a callable object with a following
signature. ::
legend_handler(legend, orig_handle, fontsize, handlebox)
Where *legend* is the legend itself, *orig_handle* is the original
plot, *fontsize* is the fontsize in pixles, and *handlebox* is a
OffsetBox instance. Within the call, you should create relevant
artists (using relevant properties from the *legend* and/or
*orig_handle*) and add them into the handlebox. The artists needs to
be scaled according to the fontsize (note that the size is in pixel,
i.e., this is dpi-scaled value).
This module includes definition of several legend handler classes
derived from the base class (HandlerBase) with a following method.
def __call__(self, legend, orig_handle,
fontsize,
handlebox):
i����N( t Line2D( t Rectanglec C s | j | j � d � d S( Ni ( t update_fromt get_children( t tgtt src( ( s? /usr/lib64/python2.7/site-packages/matplotlib/legend_handler.pyt update_from_first_child"