function to print the figure at the current size