Using Matplotlib Magic Functions Which Code Generation