Update polar.py to fix matplotlib issue 2541