Scatterplot with point colors representing a continuous variable in seaborn FacetGrid
问题 I am trying to generate multi-panel figure using seaborn in python and I want the color of the points in my multi-panel figure to be specified by a continuous variable. Here's an example of what I am trying to do with the "iris" dataset: import numpy as np import pandas as pd import seaborn as sns import matplotlib as mpl import matplotlib.pyplot as plt iris = sns.load_dataset('iris') g = sns.FacetGrid(iris, col = 'species', hue = 'petal_length', palette = 'seismic') g = g.map(plt.scatter,