linux install matplotlib code example Example: ubuntu install matplotlib sudo apt install python3-matplotlib