Figure Function In Python Example