Friday, 3 November 2017

python - Upgrade matplotlib used within QGIS


I'm using the Python Console within QGIS 2.14.3 (MacOS). When I import matplotlib, it imports version 1.4.3 from '/Library/Python/2.7/site-packages/matplotlib-override/matplotlib/init.pyc'. I would like to update matplotlib to a newer version. How do I go about doing that so that QGIS will see it?


A related question: I have miniconda installed in a different location with matplotlib version 2.1.1. When I start python from a MacOS command line, import matplotlib imports from '.../miniconda2/lib/python2.7/site-packages/matplotlib/init.pyc'. Can I point QGIS to my miniconda install or would that be a bad idea?


I am trying to better understand how QGIS and python play together.





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...