SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Building documentation and matplotlibrc

From: Ben G. <bg...@gm...> - 2010年12月09日 20:42:28
On Thu, 9 Dec 2010 14:09:41 -0600, John Hunter <jd...@gm...> wrote:
> On Thu, Dec 9, 2010 at 1:52 PM, Ben Gamari <bg...@gm...> wrote:
> 
> > Any idea why my debugging messages are ineffective? Or, even better, any
> > idea why setting the examples.download in doc/matplotlibrc isn't being
> > reflected in rc_params? I'll examine this more closely in about 30
> > minutes once I make it to the office.
> 
> I am not sure. Perhaps it is working but in the confusion you never
> had everything set right at the same time. Try setting in
> doc/matplotlibrc
> 
> examples.download : False
> examples.directory : somedir/relative/to/doc
>
Already done.
 
> Then flush the sphinx build directory and try again. Perhaps stick
> some debug print in matplotlib.matplotlib_fname and
> cbook.get_sample_data and let us know.
I have already done this. This is how I know that rc_examples.download
is set to True in get_sample_data(). It turns out the debugging messages
I made reference to in my last message were being output and I just
missed them in the noise. Right after matplotlib is initialized with
matplotlib.rc_params() it seems that rcParams['examples.download'] is
set to False as expected. By the time execution makes it to
get_sample_data(), however, this value has somehow been set to True.
To try identifying where this happens I have tried putting some debug
output in RcParams.__setitem__(). Unfortunately this doesn't show anyone
setting examples.download after the initial loading of matplotlibrc. Any
ideas how/where this might get overridden?
- Ben

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /