The following are code examples for showing how to use matplotlib.colors().They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like. Plot legends give meaning to a visualization, assigning meaning to the various plot elements. We previously saw how to create a simple legend; here we'll take a look at customizing the placement and aesthetics of the legend in Matplotlib. Aug 18, 2012 · Matplotlib version 1.1 added some tools for creating animations which are really slick. You can find some good example animations on the matplotlib examples page. I thought I'd share here some of the things I've learned when playing around with these tools. The goal of root2matplot is to enable easy plotting of ROOT histograms using the full-featured and mature matplotlib library. Some possibilities in matplotlib that are unavailable in ROOT include transparent fills and text output using LaTeX. Matplotlib’s main APIs: pyplot and object-oriented¶ Matplotlib is a library that can be thought of as having two main ways of being used: via pyplot calls, as a high-level, matlab-like library that automatically manages details like figure creation.