On Monday 14 January 2008 02:27:28 am Tom Johnson wrote:
> I was looking at rc_params() and saw
>
>     if not os.path.exists(fname):
>         message = 'could not find rc file; returning defaults'
>         ret =  dict([ (key, tup[0]) for key, tup in defaultParams.items()])
>         warnings.warn(message)
>         return ret
>
> Is this correct?  It seems that it returns a regular dictionary rather
> than an instance of RcParams.

You have a sharp eye. It is incorrect, but it turns out that block of code is 
never executed (unless the user deletes the default rc file from 
site-packages/matplotlib/mpl-data). But I changed it in the trunk to return 
an RcParams object. Thanks for the report.

Darren 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to