better documentation for figure generation