<jupyter_start><jupyter_text>Save a 2D static flatmap as PNGPlot a 2D static flatmap and save it as PNG file.**Some words on the `recache` parameter before we begin:**Setting the `recache=True` parameter recaches the flatmap cache located in//cache. By default intermediate steps for a flatmap arecached after the first generation to speed up the process for the future. Ifany of the intermediate steps changes, the flatmap generation may fail.`recache=True` will load these intermediate steps new.This can be helpful if you think there is no reason that the`quickflat.make_figure` to fail but it nevertheless fails. Try it, it's magic!The default background is set to be a transparent image. If you want to changethat use the parameter `bgcolor`.<jupyter_code>import cortex
import matplotlib.pyplot as plt
import numpy as np
np.random.seed(1234)

# Create a random pycortex Volume
volume = cortex.Volume.random(subject='S1', xfmname='fullhead')

# Plot a flatmap with the data projected onto the surface
_ = cortex.quickflat.make_figure(volume)
plt.show()

# Save this flatmap
filename = "./my_flatmap.png"
_ = cortex.quickflat.make_png(filename, volume, recache=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07, 'fraction_numerical': 0.005833333333333334, 'mean_word_length': 5.491891891891892, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '487765', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 348, 'n_tokens_neox': 331, 'n_words': 149, 'path': 'example-notebooks/quickflat/plot_make_png.ipynb', 'repo_name': 'VisionandCognition/pycortex', 'size': '1200'}