def register(explicit=True):
<EOL>global _WARN<EOL>if explicit:<EOL><INDENT>_WARN = False<EOL><DEDENT>pairs = get_pairs()<EOL>for type_, cls in pairs:<EOL><INDENT>converter = cls()<EOL>if type_ in units.registry:<EOL><INDENT>previous = units.registry[type_]<EOL>_mpl_units[type_] = previous<EOL><DEDENT>units.registry[type_] = converter<EOL><DEDENT>
Register Pandas Formatters and Converters with matplotlib

This function modifies the global ``matplotlib.units.registry``
dictionary. Pandas adds custom converters for

* pd.Timestamp
* pd.Period
* np.datetime64
* datetime.datetime
* datetime.date
* datetime.time

See Also
--------
deregister_matplotlib_converter