On 1/31/07, John Hunter <jdhunter@ace.bsd.uchicago.edu> wrote:
>>>>> "Chris" == Chris Fonnesbeck <chris@trichech.us> writes:

   Chris> The thing is, I deleted my entire ~/.matplotlib directory,
   Chris> hoping to start clean. Where does matplotlib get its info
   Chris> when a .matplotlibrc is not present in my home directory?

It first looks in the current working dir and then in ~/.matplotlib

Try running a sample script with --verbose-helpful and it will tell
you which file is being read...


I copied the matplotlibrc file from the source in svn; here is what I get using --verbose-helpful:

Osoyoos:~ chris$ python plot.py --verbose-helpful
plot.py:14: SyntaxWarning: import * only allowed at module level
  def main():
matplotlib data path /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/Users/chris
CONFIGDIR=/Users/chris/.matplotlib
loaded rc file /Users/chris/.matplotlib/matplotlibrc
matplotlib version 0.87.7
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 1.0.2.dev3522
font search path ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
loaded ttfcache file /Users/chris/.matplotlib/ttffont.cache
backend TkAgg version 8.4
Traceback (most recent call last):
  File "plot.py", line 20, in ?
    main()
  File "plot.py", line 16, in main
    plot(range(10), range(10))
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py", line 2038, in plot
    b = ishold()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py", line 937, in ishold
    return gca().ishold()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py", line 883, in gca
    ax =  gcf().gca(**kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py", line 679, in gca
    return self.add_subplot(111, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py", line 506, in add_subplot
    a = Subplot(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", line 4911, in __init__
    Axes.__init__(self, fig, [ self.figLeft, self.figBottom,
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", line 439, in __init__
    self._init_axis()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", line 470, in _init_axis
    self.xaxis = XAxis(self)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py", line 514, in __init__
    self.cla()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py", line 535, in cla
    self.set_major_formatter(ScalarFormatter())
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ticker.py", line 271, in __init__
    self._powerlimits = rcParams['axes.formatter.limits ']
KeyError: 'axes.formatter.limits'



--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us