whoami7 - Manager
:
/
lib64
/
python2.7
/
site-packages
/
matplotlib
/
Upload File:
files >> //lib64/python2.7/site-packages/matplotlib/legend_handler.pyo
� ��L]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"