
seaborn.heatmap — seaborn 0.13.2 documentation
String formatting code to use when adding annotations. annot_kws dict of key, value mappings, optional. Keyword arguments for matplotlib.axes.Axes.text() when annot is True. linewidths float, optional. Width of the lines that will divide each cell. linecolor color, optional. Color of the lines that will divide each cell. cbar bool, optional
seaborn.clustermap — seaborn 0.13.2 documentation
Add colored labels to identify observations: lut = dict ( zip ( species . unique (), "rbg" )) row_colors = species . map ( lut ) sns . clustermap ( iris , row_colors = row_colors ) Use a different colormap and adjust the limits of the color range:
Scatterplot heatmap — seaborn 0.13.2 documentation
import seaborn as sns sns. set_theme (style = "whitegrid") # Load the brain networks dataset, select subset, and collapse the multi-index df = sns. load_dataset ("brain_networks", header = …
Discovering structure in heatmap data — seaborn 0.13.2 …
import pandas as pd import seaborn as sns sns. set_theme # Load the brain networks example dataset df = sns. load_dataset ("brain_networks", header = [0, 1, 2], index_col = 0) # Select a …
Annotated heatmaps — seaborn 0.13.2 documentation
Annotated heatmaps#. seaborn components used: set_theme(), load_dataset(), heatmap()
seaborn.heatmap — seaborn 0.11.2 documentation
String formatting code to use when adding annotations. annot_kws dict of key, value mappings, optional. Keyword arguments for matplotlib.axes.Axes.text() when annot is True. linewidths float, optional. Width of the lines that will divide each cell. linecolor color, optional. Color of the lines that will divide each cell. cbar bool, optional
Annotated heatmaps — seaborn 0.10.1 documentation
Python source code: [download source: heatmap_annotation.py] import matplotlib.pyplot as plt import seaborn as sns sns . set () # Load the example flights dataset and convert to long-form flights_long = sns . load_dataset ( "flights" ) flights = flights_long . pivot ( "month" , "year" , "passengers" ) # Draw a heatmap with the numeric values in ...
Example gallery — seaborn 0.13.2 documentation
Site Navigation Installing Gallery Tutorial API Releases Citing GitHub; StackOverflow; Twitter
seaborn.pairplot — seaborn 0.13.2 documentation
Variable in data to map plot aspects to different colors. hue_order list of strings. Order for the levels of the hue variable in the palette. palette dict or seaborn color palette. Set of colors for mapping the hue variable. If a dict, keys should be values in …
seaborn.FacetGrid.add_legend — seaborn 0.13.2 documentation
seaborn.FacetGrid.add_legend# FacetGrid. add_legend ( legend_data = None , title = None , label_order = None , adjust_subtitles = False , ** kwargs ) # Draw a legend, maybe placing it outside axes and resizing the figure.