sns heatmap savefig code example Example: save a seaborn heatmap swarm_plot = sns.swarmplot(...) fig = swarm_plot.get_figure() fig.savefig(...)