R Ggplot Set Plot Size Matplotlib Legend Function Python