prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  plot does not work in Ubuntu
  Plotting with `matplotlib` 3.3.0+ causes an exception because of Pillow dependency added at https://github.com/matplotlib/matplotlib/commit/370e9a2d5d9e637abc90b3270d368642c69f66c6#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7 on Ubuntu:
  
  ```python
  import databricks.koalas as ks
  df = ks.DataFrame({'x': [1, 2], 'y': [3, 4], 'z': [5, 6]})
  df.plot...
  ```
  
  ```
  ImportError: /.../lib/python3.8/site-packages/PIL/_imaging.cpython-38-x86_64-linux-gnu.so: ELF load command address/offset not properly aligned
  ```
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 
  3 #
  4 # Copyright (C) 2019 Databricks, Inc.
  5 #
  6 # Licensed under the Apache License, Version 2.0 (the "License");
  7 # you may not use this file except in compliance with the License.
  8 # You may obtain a copy of the License at
  9 #
  10 #     http://www.apache.org/licenses/LICENSE-2.0
  11 #
  12 # Unless required by applicable law or agreed to in writing, software
  13 # distributed under the License is distributed on an "AS IS" BASIS,
  14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15 # See the License for the specific language governing permissions and
  16 # limitations under the License.
  17 #
  18 from __future__ import print_function
  19 
  20 from io import open
  21 import sys
  22 from setuptools import setup
  23 from os import path
  24 
  25 DESCRIPTION = "Koalas: pandas API on Apache Spark"
  26 
  27 this_directory = path.abspath(path.dirname(__file__))
  28 with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
  29     LONG_DESCRIPTION = f.read()
  30 
  31 try:
  32     exec(open('databricks/koalas/version.py').read())
  33 except IOError:
  34     print("Failed to load Koalas version file for packaging. You must be in Koalas root dir.",
  35           file=sys.stderr)
  36     sys.exit(-1)
  37 VERSION = __version__  # noqa
  38 
  39 setup(
  40     name='koalas',
  41     version=VERSION,
  42     packages=[
  43         'databricks',
  44         'databricks.koalas',
  45         'databricks.koalas.missing',
  46         'databricks.koalas.plot',
  47         'databricks.koalas.spark',
  48         'databricks.koalas.typedef',
  49         'databricks.koalas.usage_logging'],
  50     extras_require={
  51         'spark': ['pyspark>=2.4.0'],
  52         'mlflow': ['mlflow>=1.0'],
  53         'plotly': ['plotly>=4.8'],
  54     },
  55     python_requires='>=3.5,<3.9',
  56     install_requires=[
  57         'pandas>=0.23.2',
  58         'pyarrow>=0.10',
  59         'numpy>=1.14',
  60         'matplotlib>=3.0.0',
  61     ],
  62     author="Databricks",
  63     author_email="koalas@databricks.com",
  64     license='http://www.apache.org/licenses/LICENSE-2.0',
  65     url="https://github.com/databricks/koalas",
  66     project_urls={
  67         'Bug Tracker': 'https://github.com/databricks/koalas/issues',
  68         'Documentation': 'https://koalas.readthedocs.io/',
  69         'Source Code': 'https://github.com/databricks/koalas'
  70     },
  71     description=DESCRIPTION,
  72     long_description=LONG_DESCRIPTION,
  73     long_description_content_type='text/markdown',
  74     classifiers=[
  75         'Programming Language :: Python :: 3.5',
  76         'Programming Language :: Python :: 3.6',
  77         'Programming Language :: Python :: 3.7',
  78         'Programming Language :: Python :: 3.8',
  79     ],
  80 )
  81
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -57,7 +57,7 @@
           'pandas>=0.23.2',
           'pyarrow>=0.10',
           'numpy>=1.14',
  -        'matplotlib>=3.0.0',
  +        'matplotlib>=3.0.0,<3.3.0',
       ],
       author="Databricks",
       author_email="koalas@databricks.com",
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -57,7 +57,7 @@\n         'pandas>=0.23.2',\n         'pyarrow>=0.10',\n         'numpy>=1.14',\n-        'matplotlib>=3.0.0',\n+        'matplotlib>=3.0.0,<3.3.0',\n     ],\n     author=\"Databricks\",\n     author_email=\"koalas@databricks.com\",\n", "issue": "plot does not work in Ubuntu\nPlotting with `matplotlib` 3.3.0+ causes an exception because of Pillow dependency added at https://github.com/matplotlib/matplotlib/commit/370e9a2d5d9e637abc90b3270d368642c69f66c6#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7 on Ubuntu:\r\n\r\n```python\r\nimport databricks.koalas as ks\r\ndf = ks.DataFrame({'x': [1, 2], 'y': [3, 4], 'z': [5, 6]})\r\ndf.plot...\r\n```\r\n\r\n```\r\nImportError: /.../lib/python3.8/site-packages/PIL/_imaging.cpython-38-x86_64-linux-gnu.so: ELF load command address/offset not properly aligned\r\n```\n", "before_files": [{"content": "#!/usr/bin/env python\n\n#\n# Copyright (C) 2019 Databricks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nfrom __future__ import print_function\n\nfrom io import open\nimport sys\nfrom setuptools import setup\nfrom os import path\n\nDESCRIPTION = \"Koalas: pandas API on Apache Spark\"\n\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:\n    LONG_DESCRIPTION = f.read()\n\ntry:\n    exec(open('databricks/koalas/version.py').read())\nexcept IOError:\n    print(\"Failed to load Koalas version file for packaging. You must be in Koalas root dir.\",\n          file=sys.stderr)\n    sys.exit(-1)\nVERSION = __version__  # noqa\n\nsetup(\n    name='koalas',\n    version=VERSION,\n    packages=[\n        'databricks',\n        'databricks.koalas',\n        'databricks.koalas.missing',\n        'databricks.koalas.plot',\n        'databricks.koalas.spark',\n        'databricks.koalas.typedef',\n        'databricks.koalas.usage_logging'],\n    extras_require={\n        'spark': ['pyspark>=2.4.0'],\n        'mlflow': ['mlflow>=1.0'],\n        'plotly': ['plotly>=4.8'],\n    },\n    python_requires='>=3.5,<3.9',\n    install_requires=[\n        'pandas>=0.23.2',\n        'pyarrow>=0.10',\n        'numpy>=1.14',\n        'matplotlib>=3.0.0',\n    ],\n    author=\"Databricks\",\n    author_email=\"koalas@databricks.com\",\n    license='http://www.apache.org/licenses/LICENSE-2.0',\n    url=\"https://github.com/databricks/koalas\",\n    project_urls={\n        'Bug Tracker': 'https://github.com/databricks/koalas/issues',\n        'Documentation': 'https://koalas.readthedocs.io/',\n        'Source Code': 'https://github.com/databricks/koalas'\n    },\n    description=DESCRIPTION,\n    long_description=LONG_DESCRIPTION,\n    long_description_content_type='text/markdown',\n    classifiers=[\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: 3.8',\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\n#\n# Copyright (C) 2019 Databricks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nfrom __future__ import print_function\n\nfrom io import open\nimport sys\nfrom setuptools import setup\nfrom os import path\n\nDESCRIPTION = \"Koalas: pandas API on Apache Spark\"\n\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:\n    LONG_DESCRIPTION = f.read()\n\ntry:\n    exec(open('databricks/koalas/version.py').read())\nexcept IOError:\n    print(\"Failed to load Koalas version file for packaging. You must be in Koalas root dir.\",\n          file=sys.stderr)\n    sys.exit(-1)\nVERSION = __version__  # noqa\n\nsetup(\n    name='koalas',\n    version=VERSION,\n    packages=[\n        'databricks',\n        'databricks.koalas',\n        'databricks.koalas.missing',\n        'databricks.koalas.plot',\n        'databricks.koalas.spark',\n        'databricks.koalas.typedef',\n        'databricks.koalas.usage_logging'],\n    extras_require={\n        'spark': ['pyspark>=2.4.0'],\n        'mlflow': ['mlflow>=1.0'],\n        'plotly': ['plotly>=4.8'],\n    },\n    python_requires='>=3.5,<3.9',\n    install_requires=[\n        'pandas>=0.23.2',\n        'pyarrow>=0.10',\n        'numpy>=1.14',\n        'matplotlib>=3.0.0,<3.3.0',\n    ],\n    author=\"Databricks\",\n    author_email=\"koalas@databricks.com\",\n    license='http://www.apache.org/licenses/LICENSE-2.0',\n    url=\"https://github.com/databricks/koalas\",\n    project_urls={\n        'Bug Tracker': 'https://github.com/databricks/koalas/issues',\n        'Documentation': 'https://koalas.readthedocs.io/',\n        'Source Code': 'https://github.com/databricks/koalas'\n    },\n    description=DESCRIPTION,\n    long_description=LONG_DESCRIPTION,\n    long_description_content_type='text/markdown',\n    classifiers=[\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: 3.8',\n    ],\n)\n", "path": "setup.py"}]}