0

Running the script below in Terminal points to

import matplotlib
print(matplotlib.matplotlib_fname())

/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc

but running it in TextMate I get

/Users/myname/.matplotlib/matplotlibrc

What's controlling which matplotlibrc is used and how do I control it?

I installed the python-2.7 using brew.

1 Answer 1

1

I found the answer. I needed to put

export MPLCONFIGDIR=$HOME/.matplotlib

somewhere that would be read by running ~/.profile (e.g. in ~/.profile).

I don't know why it is not found automatically.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.