Trouble with saving grouped seaborn facetgrid heatmap data into a directory
问题 I've been struggling to save my graphs to the specific directory with some certaion look. Here is the example data and what I've tried so far import pandas as pd import numpy as np import itertools import seaborn as sns from matplotlib.colors import ListedColormap print("seaborn version {}".format(sns.__version__)) # R expand.grid() function in Python # https://stackoverflow.com/a/12131385/1135316 def expandgrid(*itrs): product = list(itertools.product(*itrs)) return {'Var{}'.format(i+1):[x[i