Hi,
When i run the code below I get the following error.
from matplotlib import pyplot as plt
def draw_square():
ax = matplotlib.axes(xlim = (0, 6), ylim = (0, 6))
square = matplotlib.Polygon([(1, 1), (5, 1), (5, 5), (1, 5)], closed = True)
ax.add_patch(square)
matplotlib.show()
if __name__ == '__main__':
draw_square()
Here comes the link to shared fil on onlinegdb
https://onlinegdb.com/SJfoXxbTD
Error:
Traceback (most recent call last):
File "main.py", line 1, in <module>
from matplotlib import pyplot as plt
File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 967, in <module>
rcParams = rc_params()
File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 876, in rc_params
fname = matplotlib_fname()
File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 744, in matplotlib_fname
configdir = _get_configdir()
File "/usr/lib/python3.4/getpass.py", line 170, in getuser
return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 14062'
what is going wrong.
thanks
regards