|
From: Darren D. <dd...@co...> - 2004-10-13 15:50:18
|
On Wednesday 13 October 2004 09:22 am, John Hunter wrote:
> >>>>> "Darren" == Darren Dale <dd...@co...> writes:
>
> Darren> I am seeing some strange behavior during IPython and
> Darren> vanilla Python interactive sessions. My .matplotlibrc is
> Darren> not being respected. I have tried making changes to the
> Darren> copy in my home diretory and the one in
> Darren> /usr/share/matplotlib. If I run the commands below or do
> Darren> an execfile('/home/darren/test.py') from an interactive
> Darren> session, .matplotlibrc is not read. If I run the script
> Darren> from the console, .matplotlibrc is read.
>
> Darren> I'm on gentoo with either 0.63.0 or the current cvs,
> Darren> python 2.3.3. Has anyboody else seen this?
>
>
> Darren> from matplotlib.matlab import * a=[1,10,100,1000,10000]
> Darren> figure(1) loglog(a,a) figure(2) plot(a,a) show()
>
> Changes to rc made after you have started an interactive session would
> not be expected to have an effect -- the rc file is parsed when any
> matplotlib module is imported and not parsed again. If you make some
> obvious change to the rc file in your home dir, say
>
I understand that these .matplotlibrc changes must be made before importing
matplotlib. The problem I was having was that the file was not being read
when starting ipython -pylab. I have reinstalled MPL a couple times now, and
can't reproduce the problem.
Darren
|