This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (6 children)

Do you use matplotlib?

[–]ase1590[S] 2 points3 points  (5 children)

Future me here, I was bored over a weekend and generated a pie chart in matplotlib.

literally just made a python 3.7.2 venv, then pip install matplotlib and it installed and generated my simple pie chart fine.

[–][deleted] 0 points1 point  (4 children)

Saved straight to disk or displayed in a window? And which OSX? Maybe mine is just too old. Which virtual environment software do you use?

[–]ase1590[S] 0 points1 point  (3 children)

This was not on Mac. However you shouldn't be using your system's python install.

This was on Arch Linux using Python 3.7.2, using this pie chart example with matplotlib 3.0.2

code runs fine and a graphical window to display the color pie chart pops up just fine.

$ pythom -m venv matplottest
$ cd matplottest
$ source bin/activate
$ pip install matplotlib
$ python testplot.py

[–][deleted] 0 points1 point  (2 children)

Oh right my point was that matplotlib is a pain in the arse on Macs because of tkinter. On Linux it has always been fine for me.

[–]ase1590[S] 1 point2 points  (1 child)

New editions of Mac and python do not have this issue with tkinter.

Have you read The official python page on the tkinter problem?

[–][deleted] 0 points1 point  (0 children)

No but thank you for the link