Switching frame visualizations by means of a variable