Why move this out of the display file? Seems that "library" files should be separate from files using them (display is meant to display all the graphs—now that functionality is spread between other files?)