import seaborn as sns import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt sns.set_context("paper") #除了paper还有别的布局,help查看 plt.figure(figsize=(8, 6)) #大小 sns.set() x = np.linspace(0, 14, 100) for i in range(1, 7): plt.plot(x, np.sin(x + i * .5) * (7 - i)) plt.show() [PDF] Cheat sheet Seaborn.indd, The Python visualization library Seaborn is based on matplotlib The basic steps to creating plots with Seaborn are: 1. sns.set_palette("husl",3) Define the color palette Categorical scatterplot with y="petal_length", non-overlapping points. Grouping variable that will produce points with different colors.