Fig Function In Python Example