Reputation: 63
The comment sudo apt-get install python-matplotlib is installing 1.1.1rc version, not the latest version. I need the matplotlib 1.3.1 for hatch fill between curves. No upgradation command found that lead to success. Nothing helpful in the web, that successfully works. Please help. Ubuntu version 12.04.
Upvotes: 2
Views: 6418
Reputation: 13750
The ubuntu repositories do not contain the most recent versions. You can use pip
to install the latest versions.
If you don't have pip installed, use sudo apt-get install pip
to install it.
Then use
sudo pip install --upgrade matplotlib
to upgrade matplotlib to the most recent version.
In case, you get an error message like
Running setup.py egg_info for package matplotlib
The required version of distribute (>=0.6.28) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U distribute'
execute
easy_install -U distribute
and try sudo pip install --upgrade matplotlib
again.
Upvotes: 5