Python matplotlib.style.available() Examples

The following are 1 code examples of matplotlib.style.available(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module matplotlib.style , or try the search function .
Example #1
Source File: build.py    From matplotlib-style-gallery with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def save_all_plots():
    """Save plots for all stylesheets known by matplotlib."""
    # Only show styles defined by package, not by user.
    for stylesheet in style.available:
        print("Creating plots for style: {}".format(stylesheet))
        save_plots(stylesheet)
    print("\nDone.")