[go: up one dir, main page]

File: check_gallery.py

package info (click to toggle)
seaborn 0.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,232 kB
  • sloc: python: 25,600; makefile: 185; javascript: 45; sh: 2
file content (14 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Execute the scripts that comprise the example gallery in the online docs."""
from glob import glob
import matplotlib.pyplot as plt

if __name__ == "__main__":

    fnames = sorted(glob("examples/*.py"))

    for fname in fnames:

        print(f"- {fname}")
        with open(fname) as fid:
            exec(fid.read())
        plt.close("all")