Implementation for figures.