dmwm / cmssh

Interactive shell for CMS experiment
http://cms.cern.ch/
7 stars 2 forks source link

macosx driver & plotting window #37

Closed vkuznet closed 11 years ago

vkuznet commented 11 years ago

CMSSH matplotlib library does not ship with macosx driver. If I use the one I compile myself the plotting window is not showing, while graphics still can be save via savefig.

vkuznet commented 11 years ago

I think the problem with plotting window is related to mismatch in compiled matplotlib module for given architecture. I was able to get plotting window if I re-install matplotlib under OSX using the following command:

cms-sh|17> os.environ['CC'] = 'llvm-gcc-4.2'
cms-sh|18> os.environ['CXX'] = 'llvm-g++-4.2'
cms-sh|19> pip install matplotlib

this instructs pip to use native OSX compiler instead of CMSSH gcc one, and it link correctly macosx driver.

vkuznet commented 11 years ago

Code has been added to install matplotlib using this work-around. This also can be done by end-users.