class printfigure