better approach to show plot graphs